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

Method declare

gen/spec.go:379–381  ·  view source on GitHub ↗

writes "var {{name}} {{typ}};"

(name string, typ string)

Source from the content-addressed store, hash-verified

377
378// writes "var {{name}} {{typ}};"
379func (p *printer) declare(name string, typ string) {
380 p.printf("\nvar %s %s", name, typ)
381}
382
383// does:
384//

Callers 11

readKeyMethod · 0.80
tupleMethod · 0.80
mapstructMethod · 0.80
gArrayMethod · 0.80
gSliceMethod · 0.80
gMapMethod · 0.80
structAsTupleMethod · 0.80
structAsMapMethod · 0.80
gMapMethod · 0.80
gSliceMethod · 0.80
gArrayMethod · 0.80

Calls 1

printfMethod · 0.95

Tested by

no test coverage detected