MCPcopy Create free account
hub / github.com/cloudwego/dynamicgo / EncodeBool

Function EncodeBool

internal/json/encoding.go:39–44  ·  view source on GitHub ↗
(buf []byte, val bool)

Source from the content-addressed store, hash-verified

37}
38
39func EncodeBool(buf []byte, val bool) []byte {
40 if val {
41 return append(buf, bytesTrue...)
42 }
43 return append(buf, bytesFalse...)
44}
45
46func EncodeBaniry(buf []byte, val []byte) []byte {
47 out := append(buf, '"')

Callers 3

doRecurseMethod · 0.92
writeDefaultOrEmptyFunction · 0.92
unmarshalSingularMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…