|
|
|
@ -153,9 +153,11 @@ func doParseKeyAndOptions(field reflect.StructField, value string) (string, *fie
|
|
|
|
|
key := strings.TrimSpace(segments[0])
|
|
|
|
|
options := segments[1:]
|
|
|
|
|
|
|
|
|
|
if len(options) > 0 {
|
|
|
|
|
var fieldOpts fieldOptions
|
|
|
|
|
if len(options) == 0 {
|
|
|
|
|
return key, nil, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var fieldOpts fieldOptions
|
|
|
|
|
for _, segment := range options {
|
|
|
|
|
option := strings.TrimSpace(segment)
|
|
|
|
|
switch {
|
|
|
|
@ -202,9 +204,6 @@ func doParseKeyAndOptions(field reflect.StructField, value string) (string, *fie
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return key, &fieldOpts, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return key, nil, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func implicitValueRequiredStruct(tag string, tp reflect.Type) (bool, error) {
|
|
|
|
|