MCPcopy
hub / github.com/rs/zerolog / isNilValue

Function isNilValue

fields.go:13–20  ·  view source on GitHub ↗
(e error)

Source from the content-addressed store, hash-verified

11)
12
13func isNilValue(e error) bool {
14 switch reflect.TypeOf(e).Kind() {
15 case reflect.Ptr:
16 return reflect.ValueOf(e).IsNil()
17 default:
18 return false
19 }
20}
21
22func appendFields(dst []byte, fields interface{}, stack bool, ctx context.Context, hooks []Hook) []byte {
23 switch fields := fields.(type) {

Callers 5

AnErrMethod · 0.85
ErrMethod · 0.85
ErrsMethod · 0.85
appendFieldListFunction · 0.85
AnErrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected