MCPcopy Create free account
hub / github.com/aws/smithy-go / float

Method float

encoding/json/value.go:66–69  ·  view source on GitHub ↗
(v float64, bits int)

Source from the content-addressed store, hash-verified

64}
65
66func (jv Value) float(v float64, bits int) {
67 *jv.scratch = encoding.EncodeFloat((*jv.scratch)[:0], v, bits)
68 jv.w.Write(*jv.scratch)
69}
70
71// Boolean encodes v as a JSON boolean
72func (jv Value) Boolean(v bool) {

Callers 2

FloatMethod · 0.95
DoubleMethod · 0.95

Implementers 3

Tagencoding/cbor/cbor.go
Nilencoding/cbor/cbor.go
Undefinedencoding/cbor/cbor.go

Calls 2

EncodeFloatFunction · 0.92
WriteMethod · 0.65

Tested by

no test coverage detected