MCPcopy
hub / github.com/tinylib/msgp / gStruct

Method gStruct

gen/encode.go:123–132  ·  view source on GitHub ↗
(s *Struct)

Source from the content-addressed store, hash-verified

121}
122
123func (e *encodeGen) gStruct(s *Struct) {
124 if !e.p.ok() {
125 return
126 }
127 if s.AsTuple {
128 e.tuple(s)
129 } else {
130 e.structmap(s)
131 }
132}
133
134func (e *encodeGen) tuple(s *Struct) {
135 nfields := len(s.Fields)

Callers

nothing calls this directly

Calls 3

tupleMethod · 0.95
structmapMethod · 0.95
okMethod · 0.80

Tested by

no test coverage detected