Documentation ¶
Index ¶
- func BoolEnvOr(key string, defaul bool) bool
- func BytesToUint64(b []byte) uint64
- func ContainsString(this string, arr []string) bool
- func ConvertMap(labels map[string]string) map[string]interface{}
- func ConvertMapS(labels map[string]interface{}) map[string]string
- func EnvOr(key string, defaul string) string
- func FromBoolPointer(this *bool) bool
- func FromIntPointer(this *int) int
- func FromStringPointer(this *string) string
- func Hash(val []byte) string
- func IntEnvOr(key string, defaul int) int
- func JSONString(obj interface{}) string
- func MarshalJSON(msg proto.Message) ([]byte, error)
- func StringSliceEnvOr(key string, defaul []string) []string
- func ToBoolPointer(this bool) *bool
- func ToInt32Pointer(value uint32) *int32
- func ToIntPointer(this int) *int
- func ToStringPointer(this string) *string
- func ToTimePointer(t time.Time) *time.Time
- func Uint64ToBytes(u uint64) []byte
- func UnmarshalJSON(bits []byte, msg proto.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToUint64 ¶
func ContainsString ¶
func ConvertMap ¶
func ConvertMapS ¶
func FromBoolPointer ¶
func FromIntPointer ¶
func FromStringPointer ¶
func JSONString ¶
func JSONString(obj interface{}) string
func StringSliceEnvOr ¶
func ToBoolPointer ¶
func ToInt32Pointer ¶
func ToIntPointer ¶
func ToStringPointer ¶
func Uint64ToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.