key

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

This package provides convenience functions for creating keys and key-value pairs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(k string, v bool) core.KeyValue

Bool creates a new key-value pair with a passed name and a bool value.

func Float32

func Float32(k string, v float32) core.KeyValue

Float32 creates a new key-value pair with a passed name and a float32 value.

func Float64

func Float64(k string, v float64) core.KeyValue

Float64 creates a new key-value pair with a passed name and a float64 value.

func Int

func Int(k string, v int) core.KeyValue

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 Int32

func Int32(k string, v int32) core.KeyValue

Int32 creates a new key-value pair with a passed name and an int32 value.

func Int64

func Int64(k string, v int64) core.KeyValue

Int64 creates a new key-value pair with a passed name and an int64 value.

func New

func New(name string) core.Key

New creates a new key with a passed name.

func String

func String(k, v string) core.KeyValue

String creates a new key-value pair with a passed name and a string value.

func Uint

func Uint(k string, v uint) core.KeyValue

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.

func Uint32

func Uint32(k string, v uint32) core.KeyValue

Uint32 creates a new key-value pair with a passed name and a uint32 value.

func Uint64

func Uint64(k string, v uint64) core.KeyValue

Uint64 creates a new key-value pair with a passed name and a uint64 value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL