MCPcopy
hub / github.com/rs/zerolog / Str

Method Str

array.go:83–86  ·  view source on GitHub ↗

Str appends the val as a string to the array.

(val string)

Source from the content-addressed store, hash-verified

81
82// Str appends the val as a string to the array.
83func (a *Array) Str(val string) *Array {
84 a.buf = enc.AppendString(enc.AppendArrayDelim(a.buf), val)
85 return a
86}
87
88// Bytes appends the val as a string to the array.
89func (a *Array) Bytes(val []byte) *Array {

Callers 1

ErrsMethod · 0.95

Calls 2

AppendStringMethod · 0.65
AppendArrayDelimMethod · 0.65

Tested by

no test coverage detected