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

Method appendString

logger/formatter_common.go:88–94  ·  view source on GitHub ↗

appendString appends a string value to the buffer, applying quoting rules as necessary.

(val string, forceQuote bool)

Source from the content-addressed store, hash-verified

86
87// appendString appends a string value to the buffer, applying quoting rules as necessary.
88func (s *formatterCommon) appendString(val string, forceQuote bool) {
89 if forceQuote {
90 s.buf.appendStringQuoted(val)
91 } else {
92 s.buf.appendString(val)
93 }
94}
95
96// appendTime appends a time value to the buffer, wrapping it in quotes,
97// ([time.DateTime] always contains a space)

Callers 2

appendValueMethod · 0.95
appendAnyMethod · 0.95

Calls 1

appendStringQuotedMethod · 0.80

Tested by

no test coverage detected