fix ci/cd error

This commit is contained in:
guonaihong 2024-03-25 22:25:12 +08:00
parent e5e38ad594
commit 5ede0c1580
2 changed files with 4 additions and 3 deletions

View File

@ -81,6 +81,7 @@ var (
Uri = uriBinding{} Uri = uriBinding{}
Header = headerBinding{} Header = headerBinding{}
TOML = tomlBinding{} TOML = tomlBinding{}
Plain = plainBinding{}
) )
// Default returns the appropriate Binding instance based on the HTTP method // Default returns the appropriate Binding instance based on the HTTP method

View File

@ -614,7 +614,7 @@ func (c *Context) SaveUploadedFile(file *multipart.FileHeader, dst string) error
} }
defer src.Close() defer src.Close()
if err = os.MkdirAll(filepath.Dir(dst), 0750); err != nil { if err = os.MkdirAll(filepath.Dir(dst), 0o750); err != nil {
return err return err
} }
@ -668,7 +668,7 @@ func (c *Context) BindTOML(obj any) error {
} }
// BindPlain is a shortcut for c.MustBindWith(obj, binding.Plain). // BindPlain is a shortcut for c.MustBindWith(obj, binding.Plain).
func (c *Context) BindPlain(obj interface{}) error { func (c *Context) BindPlain(obj any) error {
return c.MustBindWith(obj, binding.Plain) return c.MustBindWith(obj, binding.Plain)
} }
@ -738,7 +738,7 @@ func (c *Context) ShouldBindTOML(obj any) error {
} }
// ShouldBindPlain is a shortcut for c.ShouldBindWith(obj, binding.Plain). // ShouldBindPlain is a shortcut for c.ShouldBindWith(obj, binding.Plain).
func (c *Context) ShouldBindPlain(obj interface{}) error { func (c *Context) ShouldBindPlain(obj any) error {
return c.ShouldBindWith(obj, binding.Plain) return c.ShouldBindWith(obj, binding.Plain)
} }