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

Function EncodeString

internal/json/encoding.go:62–71  ·  view source on GitHub ↗
(buf []byte, val string)

Source from the content-addressed store, hash-verified

60}
61
62func EncodeString(buf []byte, val string) []byte {
63 buf = append(buf, '"')
64 if len(val) == 0 {
65 buf = append(buf, '"')
66 return buf
67 }
68 NoQuote(&buf, val)
69 buf = append(buf, '"')
70 return buf
71}
72
73func EncodeInt64(buf []byte, val int64) []byte {
74 i64toa(&buf, val)

Callers 9

makeDefaultValueFunction · 0.92
EncodeTextMethod · 0.92
doMethod · 0.92
doMethod · 0.92
doRecurseMethod · 0.92
handleUnsetsMethod · 0.92
writeDefaultOrEmptyFunction · 0.92
doMethod · 0.92
unmarshalSingularMethod · 0.92

Calls 1

NoQuoteFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…