(t reflect.Type)
| 128 | ) |
| 129 | |
| 130 | func implementsJSON(t reflect.Type) bool { |
| 131 | if t.Implements(jsonMarshalerT) || t.Implements(textMarshalerT) { |
| 132 | return true |
| 133 | } |
| 134 | if t.Kind() != reflect.Pointer { |
| 135 | pt := reflect.PointerTo(t) |
| 136 | return pt.Implements(jsonMarshalerT) || pt.Implements(textMarshalerT) |
| 137 | } |
| 138 | return false |
| 139 | } |
| 140 | |
| 141 | func ValidateAtomType(t reflect.Type, atomName string) error { |
| 142 | seen := make(map[reflect.Type]bool) |
no outgoing calls
no test coverage detected