Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/uber-go/zap
/ truncate
Method
truncate
zapcore/json_encoder.go:433–435 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
431
}
432
433
func
(enc *jsonEncoder) truncate() {
434
enc.buf.Reset()
435
}
436
437
func
(enc *jsonEncoder) closeOpenNamespaces() {
438
for
i := 0; i < enc.openNamespaces; i++ {
Callers
2
TestJSONEscaping
Function · 0.95
assertOutput
Function · 0.80
Calls
1
Reset
Method · 0.80
Tested by
2
TestJSONEscaping
Function · 0.76
assertOutput
Function · 0.64