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

Method AppendTimeLayout

zapcore/json_encoder.go:299–304  ·  view source on GitHub ↗
(time time.Time, layout string)

Source from the content-addressed store, hash-verified

297}
298
299func (enc *jsonEncoder) AppendTimeLayout(time time.Time, layout string) {
300 enc.addElementSeparator()
301 enc.buf.AppendByte('"')
302 enc.buf.AppendTime(time, layout)
303 enc.buf.AppendByte('"')
304}
305
306func (enc *jsonEncoder) AppendTime(val time.Time) {
307 cur := enc.buf.Len()

Callers

nothing calls this directly

Calls 3

addElementSeparatorMethod · 0.95
AppendByteMethod · 0.80
AppendTimeMethod · 0.65

Tested by

no test coverage detected