MCPcopy
hub / github.com/uber-go/zap / AppendString

Method AppendString

zapcore/json_encoder.go:292–297  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

290}
291
292func (enc *jsonEncoder) AppendString(val string) {
293 enc.addElementSeparator()
294 enc.buf.AppendByte('"')
295 enc.safeAddString(val)
296 enc.buf.AppendByte('"')
297}
298
299func (enc *jsonEncoder) AppendTimeLayout(time time.Time, layout string) {
300 enc.addElementSeparator()

Callers 1

AddStringMethod · 0.95

Calls 3

addElementSeparatorMethod · 0.95
safeAddStringMethod · 0.95
AppendByteMethod · 0.80

Tested by

no test coverage detected