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

Method initOnce

zapcore/lazy_with.go:42–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func (d *lazyWithCore) initOnce() {
43 d.Once.Do(func() {
44 d.core = d.originalCore.With(d.fields)
45 })
46}
47
48func (d *lazyWithCore) With(fields []Field) Core {
49 d.initOnce()

Callers 4

WithMethod · 0.95
CheckMethod · 0.95
WriteMethod · 0.95
SyncMethod · 0.95

Calls 1

WithMethod · 0.65

Tested by

no test coverage detected