func implementsTextUnmarshaler(field *structs.Field) bool { t := field.Type() if t.Kind() != reflect.Ptr { t = reflect.PtrTo(t) } return t.Implements(textUnmarshalerType) }