go.uber.org/zap/zapcore.Field.Key (field)
57 uses
go.uber.org/zap/zapcore (current package)
field.go#L105: Key string
field.go#L119: err = enc.AddArray(f.Key, f.Interface.(ArrayMarshaler))
field.go#L121: err = enc.AddObject(f.Key, f.Interface.(ObjectMarshaler))
field.go#L125: enc.AddBinary(f.Key, f.Interface.([]byte))
field.go#L127: enc.AddBool(f.Key, f.Integer == 1)
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#L135: enc.AddDuration(f.Key, time.Duration(f.Integer))
field.go#L137: enc.AddFloat64(f.Key, math.Float64frombits(uint64(f.Integer)))
field.go#L139: enc.AddFloat32(f.Key, math.Float32frombits(uint32(f.Integer)))
field.go#L141: enc.AddInt64(f.Key, f.Integer)
field.go#L143: enc.AddInt32(f.Key, int32(f.Integer))
field.go#L145: enc.AddInt16(f.Key, int16(f.Integer))
field.go#L147: enc.AddInt8(f.Key, int8(f.Integer))
field.go#L149: enc.AddString(f.Key, f.String)
field.go#L152: enc.AddTime(f.Key, time.Unix(0, f.Integer).In(f.Interface.(*time.Location)))
field.go#L155: enc.AddTime(f.Key, time.Unix(0, f.Integer))
field.go#L158: enc.AddTime(f.Key, f.Interface.(time.Time))
field.go#L160: enc.AddUint64(f.Key, uint64(f.Integer))
field.go#L162: enc.AddUint32(f.Key, uint32(f.Integer))
field.go#L164: enc.AddUint16(f.Key, uint16(f.Integer))
field.go#L166: enc.AddUint8(f.Key, uint8(f.Integer))
field.go#L168: enc.AddUintptr(f.Key, uintptr(f.Integer))
field.go#L170: err = enc.AddReflected(f.Key, f.Interface)
field.go#L172: enc.OpenNamespace(f.Key)
field.go#L174: err = encodeStringer(f.Key, f.Interface, enc)
field.go#L176: err = encodeError(f.Key, f.Interface.(error), enc)
field.go#L184: enc.AddString(fmt.Sprintf("%sError", f.Key), err.Error())
field.go#L194: if f.Key != other.Key {
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#L68: return Field{Key: key, Type: zapcore.BoolType, Integer: ival}
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#L123: return Field{Key: key, Type: zapcore.Float64Type, Integer: int64(math.Float64bits(val))}
field.go#L139: return Field{Key: key, Type: zapcore.Float32Type, Integer: int64(math.Float32bits(val))}
field.go#L167: return Field{Key: key, Type: zapcore.Int64Type, Integer: val}
field.go#L181: return Field{Key: key, Type: zapcore.Int32Type, Integer: int64(val)}
field.go#L195: return Field{Key: key, Type: zapcore.Int16Type, Integer: int64(val)}
field.go#L209: return Field{Key: key, Type: zapcore.Int8Type, Integer: int64(val)}
field.go#L223: return Field{Key: key, Type: zapcore.StringType, String: val}
field.go#L251: return Field{Key: key, Type: zapcore.Uint64Type, Integer: int64(val)}
field.go#L265: return Field{Key: key, Type: zapcore.Uint32Type, Integer: int64(val)}
field.go#L279: return Field{Key: key, Type: zapcore.Uint16Type, Integer: int64(val)}
field.go#L293: return Field{Key: key, Type: zapcore.Uint8Type, Integer: int64(val)}
field.go#L307: return Field{Key: key, Type: zapcore.UintptrType, Integer: int64(val)}
field.go#L327: return Field{Key: key, Type: zapcore.ReflectType, Interface: val}
field.go#L336: return Field{Key: key, Type: zapcore.NamespaceType}
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#L384: return Field{Key: key, Type: zapcore.DurationType, Integer: int64(val)}
field.go#L401: return Field{Key: key, Type: zapcore.ObjectMarshalerType, 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. |