fix style of comments

This commit is contained in:
Dmitry Kutakov 2019-04-01 12:43:28 +03:00
parent 6c5e1da5ad
commit fe96cf6a0d
2 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ var (
multipartFileHeaderStructType = reflect.TypeOf(multipart.FileHeader{})
)
// TrySet - try to set a value by the multipart request with the binding a form file
// TrySet tries to set a value by the multipart request with the binding a form file
func (r *multipartRequest) TrySet(value reflect.Value, field reflect.StructField, key string, opt setOptions) (isSetted bool, err error) {
if value.Type() == multipartFileHeaderStructType {
_, file, err := (*http.Request)(r).FormFile(key)

View File

@ -31,7 +31,7 @@ func mapFormByTag(ptr interface{}, form map[string][]string, tag string) error {
return mappingByPtr(ptr, formSource(form), tag)
}
// setter - try to set value on a walking by fields of a struct
// setter tries to set value on a walking by fields of a struct
type setter interface {
TrySet(value reflect.Value, field reflect.StructField, key string, opt setOptions) (isSetted bool, err error)
}
@ -40,7 +40,7 @@ type formSource map[string][]string
var _ setter = formSource(nil)
// TrySet - try to set a value by request's form source (like map[string][]string)
// TrySet tries to set a value by request's form source (like map[string][]string)
func (form formSource) TrySet(value reflect.Value, field reflect.StructField, tagValue string, opt setOptions) (isSetted bool, err error) {
return setByForm(value, field, form, tagValue, opt)
}