MCPcopy Create free account
hub / github.com/araddon/qlbridge / MarshalJSON

Method MarshalJSON

value/value.go:480–480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478func (m IntValue) Value() interface{} { return m.v }
479func (m IntValue) Val() int64 { return m.v }
480func (m IntValue) MarshalJSON() ([]byte, error) { return marshalFloat(float64(m.v)) }
481func (m IntValue) NumberValue() NumberValue { return NewNumberValue(float64(m.v)) }
482func (m IntValue) ToString() string {
483 if m.v == math.MinInt32 {

Callers 2

WriteValueMethod · 0.45
TestErrValueFunction · 0.45

Calls 1

marshalFloatFunction · 0.85

Tested by 1

TestErrValueFunction · 0.36