(values []string)
| 973 | return out, true |
| 974 | } |
| 975 | |
| 976 | func stringFieldByNames(value reflect.Value, names ...string) string { |
| 977 | field := fieldByNames(value, names...) |
| 978 | if !field.IsValid() || !field.CanInterface() { |
| 979 | return "" |
| 980 | } |
| 981 | return stringFromAny(field.Interface()) |
| 982 | } |
| 983 | |
| 984 | func fieldByNames(value reflect.Value, names ...string) reflect.Value { |
| 985 | for _, name := range names { |
| 986 | if field := value.FieldByName(name); field.IsValid() { |
no outgoing calls
no test coverage detected