(value string, limit int)
| 965 | } |
| 966 | return stringFromAny(field.Interface()) |
| 967 | } |
| 968 | |
| 969 | func fieldByNames(value reflect.Value, names ...string) reflect.Value { |
| 970 | for _, name := range names { |
| 971 | if field := value.FieldByName(name); field.IsValid() { |
| 972 | return field |
| 973 | } |
| 974 | } |
| 975 | return reflect.Value{} |
| 976 | } |
no outgoing calls
no test coverage detected