MCPcopy Create free account
hub / github.com/segmentio/encoding / inlined

Function inlined

json/codec.go:866–877  ·  view source on GitHub ↗
(t reflect.Type)

Source from the content-addressed store, hash-verified

864}
865
866func inlined(t reflect.Type) bool {
867 switch t.Kind() {
868 case reflect.Ptr:
869 return true
870 case reflect.Map:
871 return true
872 case reflect.Struct:
873 return t.NumField() == 1 && inlined(t.Field(0).Type)
874 default:
875 return false
876 }
877}
878
879func isValidTag(s string) bool {
880 if s == "" {

Callers 2

constructCachedCodecFunction · 0.70
constructMapCodecFunction · 0.70

Calls 3

KindMethod · 0.65
NumFieldMethod · 0.65
FieldMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…