MCPcopy Create free account
hub / github.com/pquerna/ffjson / HasFeature

Method HasFeature

shared/options.go:42–51  ·  view source on GitHub ↗
(f Feature)

Source from the content-addressed store, hash-verified

40}
41
42func (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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected