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

Method Boolean

encoding/json/value.go:72–75  ·  view source on GitHub ↗

Boolean encodes v as a JSON boolean

(v bool)

Source from the content-addressed store, hash-verified

70
71// Boolean encodes v as a JSON boolean
72func (jv Value) Boolean(v bool) {
73 *jv.scratch = strconv.AppendBool((*jv.scratch)[:0], v)
74 jv.w.Write(*jv.scratch)
75}
76
77// Base64EncodeBytes writes v as a base64 value in JSON string
78func (jv Value) Base64EncodeBytes(v []byte) {

Callers 1

TestValueFunction · 0.45

Implementers 3

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

Calls 1

WriteMethod · 0.65

Tested by 1

TestValueFunction · 0.36