Documentation
¶
Index ¶
- type Field
- func Bool(name string, value bool) Field
- func Duration(name string, value time.Duration) Field
- func Error(name string, value error) Field
- func Int(name string, value int) Field
- func Int16(name string, value int16) Field
- func Int32(name string, value int32) Field
- func Int64(name string, value int64) Field
- func Int8(name string, value int8) Field
- func Ord(name string, value uint) Field
- func Ord16(name string, value uint16) Field
- func Ord32(name string, value uint32) Field
- func Ord64(name string, value uint64) Field
- func Ord8(name string, value uint8) Field
- func String(name string, value string) Field
- func Stringer(name string, value fmt.Stringer) Field
- func Time(name string, value time.Time) Field
- func Uint(name string, value uint) Field
- func Uint16(name string, value uint16) Field
- func Uint32(name string, value uint32) Field
- func Uint64(name string, value uint64) Field
- func Uint8(name string, value uint8) Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
Field represents something with a 'name' and a 'value'.
func Duration ¶
Duration returns a field with a time.Duration value.
func Stringer ¶
String returns a field with a `string` value that comes from a fmt.Stringer.
Click to show internal directories.
Click to hide internal directories.