helpers

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolEnvOr

func BoolEnvOr(key string, defaul bool) bool

func BoolPointer added in v0.0.6

func BoolPointer(this bool) *bool

func BytesToUint64

func BytesToUint64(b []byte) uint64

func ContainsString

func ContainsString(this string, arr []string) bool

func ConvertMap added in v0.0.11

func ConvertMap(labels map[string]string) map[string]interface{}

func ConvertMapS added in v0.0.11

func ConvertMapS(labels map[string]interface{}) map[string]string

func EnvOr

func EnvOr(key string, defaul string) string

func Hash

func Hash(val []byte) string

func Int32Pointer added in v0.0.6

func Int32Pointer(value uint32) *int32

func IntEnvOr

func IntEnvOr(key string, defaul int) int

func JSONString

func JSONString(obj interface{}) string

func MarshalJSON

func MarshalJSON(msg proto.Message) ([]byte, error)

func StringPointer added in v0.0.6

func StringPointer(this string) *string

func StringSliceEnvOr

func StringSliceEnvOr(key string, defaul []string) []string

func Uint64ToBytes

func Uint64ToBytes(u uint64) []byte

func UnmarshalJSON

func UnmarshalJSON(bits []byte, msg proto.Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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