Documentation ¶
Overview ¶
This package provides convenience functions for creating keys and key-value pairs.
Index ¶
- func Bool(k string, v bool) core.KeyValue
- func Float32(k string, v float32) core.KeyValue
- func Float64(k string, v float64) core.KeyValue
- func Int(k string, v int) core.KeyValue
- func Int32(k string, v int32) core.KeyValue
- func Int64(k string, v int64) core.KeyValue
- func New(name string) core.Key
- func String(k, v string) core.KeyValue
- func Uint(k string, v uint) core.KeyValue
- func Uint32(k string, v uint32) core.KeyValue
- func Uint64(k string, v uint64) core.KeyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int ¶
Int creates a new key-value pair instance with a passed name and either an int32 or an int64 value, depending on whether the int type is 32 or 64 bits wide.
func Uint ¶
Uint creates a new key-value pair instance with a passed name and either an uint32 or an uint64 value, depending on whether the uint type is 32 or 64 bits wide.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.