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

Method appendTime

logger/formatter_common.go:98–102  ·  view source on GitHub ↗

appendTime appends a time value to the buffer, wrapping it in quotes, ([time.DateTime] always contains a space)

(val time.Time)

Source from the content-addressed store, hash-verified

96// appendTime appends a time value to the buffer, wrapping it in quotes,
97// ([time.DateTime] always contains a space)
98func (s *formatterCommon) appendTime(val time.Time) {
99 s.buf.append('"')
100 s.buf.appendStringRaw(val.Format(time.DateTime))
101 s.buf.append('"')
102}
103
104// appendAny appends a value of any type to the buffer, applying quoting rules as necessary.
105func (s *formatterCommon) appendAny(val any, forceQuote bool) {

Callers 1

appendValueMethod · 0.95

Calls 3

appendMethod · 0.80
appendStringRawMethod · 0.80
FormatMethod · 0.65

Tested by

no test coverage detected