(f Feature)
| 40 | } |
| 41 | |
| 42 | func (s StructOptions) HasFeature(f Feature) bool { |
| 43 | hasNeeded := true |
| 44 | if f&MustDecoder != 0 && s.SkipDecoder { |
| 45 | hasNeeded = false |
| 46 | } |
| 47 | if f&MustEncoder != 0 && s.SkipEncoder { |
| 48 | hasNeeded = false |
| 49 | } |
| 50 | return hasNeeded |
| 51 | } |
nothing calls this directly
no outgoing calls
no test coverage detected