From fe96cf6a0d0d1eef205accec1e634d3a0f651dd1 Mon Sep 17 00:00:00 2001 From: Dmitry Kutakov Date: Mon, 1 Apr 2019 12:43:28 +0300 Subject: [PATCH] fix style of comments --- binding/form.go | 2 +- binding/form_mapping.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/binding/form.go b/binding/form.go index 843a9893..0b28aa8a 100644 --- a/binding/form.go +++ b/binding/form.go @@ -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) diff --git a/binding/form_mapping.go b/binding/form_mapping.go index 0596618a..aaacf6c5 100644 --- a/binding/form_mapping.go +++ b/binding/form_mapping.go @@ -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) }