MCPcopy
hub / github.com/uber-go/zap / reset

Method reset

zapcore/entry.go:227–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225}
226
227func (ce *CheckedEntry) reset() {
228 ce.Entry = Entry{}
229 ce.ErrorOutput = nil
230 ce.dirty = false
231 ce.after = nil
232 for i := range ce.cores {
233 // don't keep references to cores
234 ce.cores[i] = nil
235 }
236 ce.cores = ce.cores[:0]
237 for i := range ce.before {
238 ce.before[i] = nil
239 }
240 ce.before = ce.before[:0]
241}
242
243// Write writes the entry to the stored Cores, returns any errors, and returns
244// the CheckedEntry reference to a pool for immediate re-use. Finally, it

Callers 1

getCheckedEntryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected