MCPcopy
hub / github.com/pquerna/ffjson / typeInInception

Function typeInInception

inception/encoder.go:27–40  ·  view source on GitHub ↗
(ic *Inception, typ reflect.Type, f shared.Feature)

Source from the content-addressed store, hash-verified

25)
26
27func typeInInception(ic *Inception, typ reflect.Type, f shared.Feature) bool {
28 for _, v := range ic.objs {
29 if v.Typ == typ {
30 return v.Options.HasFeature(f)
31 }
32 if typ.Kind() == reflect.Ptr {
33 if v.Typ == typ.Elem() {
34 return v.Options.HasFeature(f)
35 }
36 }
37 }
38
39 return false
40}
41
42func getOmitEmpty(ic *Inception, sf *StructField) string {
43 ptname := "j." + sf.Name

Callers 2

handleFieldAddrFunction · 0.85
getGetInnerValueFunction · 0.85

Calls 1

HasFeatureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…