(e error)
| 11 | ) |
| 12 | |
| 13 | func 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 | |
| 22 | func appendFields(dst []byte, fields interface{}, stack bool, ctx context.Context, hooks []Hook) []byte { |
| 23 | switch fields := fields.(type) { |
no outgoing calls
no test coverage detected