Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
42
func
(d *lazyWithCore) initOnce() {
43
d.Once.Do(
func
() {
44
d.core = d.originalCore.With(d.fields)
45
})
46
}
47
48
func
(d *lazyWithCore) With(fields []Field) Core {
49
d.initOnce()
Callers
4
With
Method · 0.95
Check
Method · 0.95
Write
Method · 0.95
Sync
Method · 0.95
Calls
1
With
Method · 0.65
Tested by
no test coverage detected