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

Method Set

zapcore/level.go:203–205  ·  view source on GitHub ↗

Set sets the level for the flag.Value interface.

(s string)

Source from the content-addressed store, hash-verified

201
202// Set sets the level for the flag.Value interface.
203func (l *Level) Set(s string) error {
204 return l.UnmarshalText([]byte(s))
205}
206
207// Get gets the level for the flag.Getter interface.
208func (l *Level) Get() interface{} {

Callers 1

TestAtomicLevelServeHTTPFunction · 0.80

Calls 1

UnmarshalTextMethod · 0.95

Tested by 1

TestAtomicLevelServeHTTPFunction · 0.64