go.uber.org/zap/zapcore.Field.Interface (field)
30 uses
go.uber.org/zap/zapcore (current package)
field.go#L109: Interface interface{}
field.go#L119: err = enc.AddArray(f.Key, f.Interface.(ArrayMarshaler))
field.go#L121: err = enc.AddObject(f.Key, f.Interface.(ObjectMarshaler))
field.go#L123: err = f.Interface.(ObjectMarshaler).MarshalLogObject(enc)
field.go#L125: enc.AddBinary(f.Key, f.Interface.([]byte))
field.go#L129: enc.AddByteString(f.Key, f.Interface.([]byte))
field.go#L131: enc.AddComplex128(f.Key, f.Interface.(complex128))
field.go#L133: enc.AddComplex64(f.Key, f.Interface.(complex64))
field.go#L151: if f.Interface != nil {
field.go#L152: enc.AddTime(f.Key, time.Unix(0, f.Integer).In(f.Interface.(*time.Location)))
field.go#L158: enc.AddTime(f.Key, f.Interface.(time.Time))
field.go#L170: err = enc.AddReflected(f.Key, f.Interface)
field.go#L174: err = encodeStringer(f.Key, f.Interface, enc)
field.go#L176: err = encodeError(f.Key, f.Interface.(error), enc)
field.go#L200: return bytes.Equal(f.Interface.([]byte), other.Interface.([]byte))
field.go#L202: return reflect.DeepEqual(f.Interface, other.Interface)
go.uber.org/zap
array.go#L34: return Field{Key: key, Type: zapcore.ArrayMarshalerType, Interface: val}
error.go#L48: return Field{Key: key, Type: zapcore.ErrorType, Interface: err}
field.go#L59: return Field{Key: key, Type: zapcore.BinaryType, Interface: val}
field.go#L84: return Field{Key: key, Type: zapcore.ByteStringType, Interface: val}
field.go#L91: return Field{Key: key, Type: zapcore.Complex128Type, Interface: val}
field.go#L107: return Field{Key: key, Type: zapcore.Complex64Type, Interface: val}
field.go#L327: return Field{Key: key, Type: zapcore.ReflectType, Interface: val}
field.go#L342: return Field{Key: key, Type: zapcore.StringerType, Interface: val}
field.go#L349: return Field{Key: key, Type: zapcore.TimeFullType, Interface: val}
field.go#L351: return Field{Key: key, Type: zapcore.TimeType, Integer: val.UnixNano(), Interface: val.Location()}
field.go#L401: return Field{Key: key, Type: zapcore.ObjectMarshalerType, Interface: val}
field.go#L410: Interface: val,
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |