Documentation ¶
Index ¶
- Constants
- func Logfmt(buf *buffer.Buffer, kvs []KeyValue)
- func LogfmtAppendString(buf *buffer.Buffer, s string)
- func LogfmtMessage(msg string, kvs []KeyValue) string
- type KeyValue
- func Any(key string, value any) KeyValue
- func Bool(key string, value bool) KeyValue
- func Duration(key string, value time.Duration) KeyValue
- func Error(err error) KeyValue
- func Float(key string, value float64) KeyValue
- func Int(key string, value int64) KeyValue
- func String(key string, value string) KeyValue
- func Time(key string, value time.Time) KeyValue
- func Uint(key string, value uint64) KeyValue
- type Kind
- type Value
Constants ¶
View Source
const (
DefaultTimeLayout = time.RFC3339Nano
)
Variables ¶
This section is empty.
Functions ¶
func LogfmtAppendString ¶
func LogfmtMessage ¶
Types ¶
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func DurationValue ¶
func FloatValue ¶
func StringValue ¶
Click to show internal directories.
Click to hide internal directories.