MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / Fields

Method Fields

types.go:77–88  ·  view source on GitHub ↗
(typ reflect.Type, tag string)

Source from the content-addressed store, hash-verified

75}
76
77func (m *structCache) Fields(typ reflect.Type, tag string) *fields {
78 key := structCacheKey{tag: tag, typ: typ}
79
80 if v, ok := m.m.Load(key); ok {
81 return v.(*fields)
82 }
83
84 fs := getFields(typ, tag)
85 m.m.Store(key, fs)
86
87 return fs
88}
89
90//------------------------------------------------------------------------------
91

Callers 4

decodeStructValueFunction · 0.80
decodeStructMethod · 0.80
isEmptyValueMethod · 0.80
encodeStructValueFunction · 0.80

Calls 1

getFieldsFunction · 0.85

Tested by

no test coverage detected