This commit is contained in:
crusader 2017-11-02 20:15:40 +09:00
parent c6729cf963
commit d168f251ac

View File

@ -152,7 +152,7 @@ Loop:
func validateType(t reflect.Type) (rt reflect.Type, rv reflect.Value, err error) { func validateType(t reflect.Type) (rt reflect.Type, rv reflect.Value, err error) {
if t.Kind() == reflect.Struct { if t.Kind() == reflect.Struct {
err = fmt.Errorf("Type is Struct. Pass by reference, i.e. %s", t) err = fmt.Errorf("Type is Struct. Pass by reference, i.e. *%s", t)
return return
} }
rt = t rt = t