Documentation
¶
Index ¶
- func CheckErr(err error)
- func CountBytesInString(str string) int
- func DeserializeMap(b []byte) (map[string]string, error)
- func Float64ToString(value *float64, places int) string
- func GetTimestamp() int64
- func GetTimestampString() string
- func GetUUID() string
- func Int64ToString(value *int64) string
- func IntArrayToString(values []int, delimiter string) string
- func IntToString(value int) string
- func MapToJson(m interface{}) string
- func MapToQueryParams(m map[string]string) url.Values
- func NewFloat64(val float64) *float64
- func NewInt64(val int64) *int64
- func NewString(val string) *string
- func SerializeMap(m map[string]string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckErr ¶
func CheckErr(err error)
CheckErr throws a panic for all non-nil errors passed to it.
func CountBytesInString ¶
CountBytesInString takes a string and gets a byte count.
func DeserializeMap ¶
DeserializeMap takes a byte buffer and attempts to convert it back to a map.
func Float64ToString ¶
Float64ToString does conversion of floats to string values.
func GetTimestamp ¶
func GetTimestamp() int64
GetTimestamp returns the current unix timestamp in milliseconds
func GetTimestampString ¶
func GetTimestampString() string
GetTimestampString returns the current unix timestamp in milliseconds
func Int64ToString ¶
Int64ToString converts an Integer of 64 bits to a String.
func IntArrayToString ¶
IntArrayToString converts an array of integers to a string delimited by a string of your choice.
func MapToJson ¶
func MapToJson(m interface{}) string
MapToString takes a generic and converts it to a JSON representation.
func MapToQueryParams ¶
MapToQueryParams takes a map of string keys and values and builds an encoded query string.
func SerializeMap ¶
SerializeMap takes a map and attempts to convert it to a byte buffer.
Types ¶
This section is empty.