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

Method openGroup

logger/formatter_json.go:239–245  ·  view source on GitHub ↗

openGroup opens a new group in the buffer.

(name string)

Source from the content-addressed store, hash-verified

237
238// openGroup opens a new group in the buffer.
239func (s *formatterJSON) openGroup(name string) {
240 s.groupsOpened++
241
242 s.appendKey(name)
243 s.buf.append(jsonGroupOpenToken)
244 s.sep = nil
245}
246
247// closeGroup closes the most recently opened group in the buffer.
248func (s *formatterJSON) closeGroup() {

Callers 2

formatMethod · 0.95
appendGroupMethod · 0.95

Calls 2

appendKeyMethod · 0.95
appendMethod · 0.80

Tested by

no test coverage detected