MCPcopy Create free account
hub / github.com/francoispqt/gojay / AddFloat32Key

Method AddFloat32Key

encode_number_float.go:290–292  ·  view source on GitHub ↗

AddFloat32Key adds a float32 to be encoded, must be used inside an object as it will encode a key

(key string, v float32)

Source from the content-addressed store, hash-verified

288
289// AddFloat32Key adds a float32 to be encoded, must be used inside an object as it will encode a key
290func (enc *Encoder) AddFloat32Key(key string, v float32) {
291 enc.Float32Key(key, v)
292}
293
294// AddFloat32KeyOmitEmpty adds a float64 to be encoded and skips it if its value is 0.
295// Must be used inside an object as it will encode a key

Callers 3

AddInterfaceKeyMethod · 0.95
MarshalJSONObjectMethod · 0.80
MarshalJSONObjectMethod · 0.80

Calls 1

Float32KeyMethod · 0.95

Tested by 2

MarshalJSONObjectMethod · 0.64
MarshalJSONObjectMethod · 0.64