MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / appendTime

Method appendTime

logger/formatter_json.go:191–195  ·  view source on GitHub ↗

appendTime appends a time value to the buffer.

(val time.Time)

Source from the content-addressed store, hash-verified

189
190// appendTime appends a time value to the buffer.
191func (s *formatterJSON) appendTime(val time.Time) {
192 s.buf.append('"')
193 s.buf.appendStringRaw(val.Format(time.RFC3339))
194 s.buf.append('"')
195}
196
197// appendJSONMarshal appends a JSON marshaled value to the buffer.
198func (s *formatterJSON) appendJSONMarshal(val any) {

Callers 3

formatMethod · 0.95
appendValueMethod · 0.95
formatMethod · 0.45

Calls 3

appendMethod · 0.80
appendStringRawMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected