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

Method typeDecl

gen/spec.go:556–558  ·  view source on GitHub ↗

typeDecl returns the variable declaration as a var statement

()

Source from the content-addressed store, hash-verified

554
555// typeDecl returns the variable declaration as a var statement
556func (b *bmask) typeDecl() string {
557 return fmt.Sprintf("var %s %s /* %d bits */", b.varname, b.typeName(), b.bitlen)
558}
559
560// typeName returns the type, e.g. "uint8" or "[2]uint64"
561func (b *bmask) typeName() string {

Callers 4

mapstructMethod · 0.95
mapstructMethod · 0.95
structmapMethod · 0.95
structAsMapMethod · 0.95

Calls 1

typeNameMethod · 0.95

Tested by

no test coverage detected