diff --git a/binding/binding_nomsgpack.go b/binding/binding_nomsgpack.go index 552a86b2..c8e61310 100644 --- a/binding/binding_nomsgpack.go +++ b/binding/binding_nomsgpack.go @@ -81,6 +81,7 @@ var ( Uri = uriBinding{} Header = headerBinding{} TOML = tomlBinding{} + Plain = plainBinding{} ) // Default returns the appropriate Binding instance based on the HTTP method diff --git a/context.go b/context.go index 4fe5e7b7..0cd91067 100644 --- a/context.go +++ b/context.go @@ -614,7 +614,7 @@ func (c *Context) SaveUploadedFile(file *multipart.FileHeader, dst string) error } 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 } @@ -668,7 +668,7 @@ func (c *Context) BindTOML(obj any) error { } // 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) } @@ -738,7 +738,7 @@ func (c *Context) ShouldBindTOML(obj any) error { } // 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) }