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

Method Type

msgp/number.go:96–101  ·  view source on GitHub ↗

Type will return one of: Float64Type, Float32Type, UintType, or IntType.

()

Source from the content-addressed store, hash-verified

94// Type will return one of:
95// Float64Type, Float32Type, UintType, or IntType.
96func (n *Number) Type() Type {
97 if n.typ == InvalidType {
98 return IntType
99 }
100 return n.typ
101}
102
103// DecodeMsg implements msgp.Decodable
104func (n *Number) DecodeMsg(r *Reader) error {

Callers 6

MarshalJSONMethod · 0.95
TestNumberFunction · 0.95
AppendIntfFunction · 0.80
WriteIntfMethod · 0.80
writeMapMethod · 0.80
writeSliceMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestNumberFunction · 0.76