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

Function rwBool

msgp/json.go:278–287  ·  view source on GitHub ↗
(dst jsWriter, src *Reader)

Source from the content-addressed store, hash-verified

276}
277
278func rwBool(dst jsWriter, src *Reader) (int, error) {
279 b, err := src.ReadBool()
280 if err != nil {
281 return 0, err
282 }
283 if b {
284 return dst.WriteString("true")
285 }
286 return dst.WriteString("false")
287}
288
289func rwTime(dst jsWriter, src *Reader) (int, error) {
290 t, err := src.ReadTime()

Callers

nothing calls this directly

Calls 2

ReadBoolMethod · 0.80
WriteStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…