# Functions
Bool :: return a pointer to the bool value passed in.
BoolMap converts a string map of bool values into a string map of bool pointers.
BoolSlice converts a slice of bool values into a slice of bool pointers.
BoolValue :: return the value of the bool pointer passed in or false if the pointer is nil.
BoolValueMap converts a string map of bool pointers into a string map of bool values.
BoolValueSlice converts a slice of bool pointers into a slice of bool values.
CastString casts an interface to a string if the interface is not a string or *string, return empty string and a 'false' result This is the same as SafeString except it also returns a success flag.
Float32 :: return a pointer to the float32 value passed in.
Float32Map converts a string map of float32 values into a string map of float32 pointers.
Float32Slice converts a slice of float32 values into a slice of float32 pointers.
Float32Value :: return the value of the float32 pointer passed in or 0 if the pointer is nil.
Float32ValueMap converts a string map of float32 pointers into a string map of float32 values.
Float32ValueSlice converts a slice of float32 pointers into a slice of float32 values.
Float64 :: return a pointer to the float64 value passed in.
Float64Map converts a string map of float64 values into a string map of float64 pointers.
Float64Slice converts a slice of float64 values into a slice of float64 pointers.
Float64SliceToStringSlice converts a slice of float64 into a slice of string values.
Float64Value :: return the value of the float64 pointer passed in or 0 if the pointer is nil.
Float64ValueMap converts a string map of float64 pointers into a string map of float64 values.
Float64ValueSlice converts a slice of float64 pointers into a slice of float64 values.
FloatToString converts interface to a string representation of a float.
Int :: return a pointer to the int value passed in.
Int16 :: return a pointer to the int16 value passed in.
Int16Map converts a string map of int16 values into a string map of int16 pointers.
Int16Slice converts a slice of int16 values into a slice of int16 pointers.
Int16Value :: return the value of the int16 pointer passed in or 0 if the pointer is nil.
Int16ValueMap converts a string map of int16 pointers into a string map of int16 values.
Int16ValueSlice converts a slice of int16 pointers into a slice of int16 values.
Int32 :: return a pointer to the int32 value passed in.
Int32Map converts a string map of int32 values into a string map of int32 pointers.
Int32Slice converts a slice of int32 values into a slice of int32 pointers.
Int32Value :: return the value of the int32 pointer passed in or 0 if the pointer is nil.
Int32ValueMap converts a string map of int32 pointers into a string map of int32 values.
Int32ValueSlice converts a slice of int32 pointers into a slice of int32 values.
Int64 :: return a pointer to the int64 value passed in.
Int64Map converts a string map of int64 values into a string map of int64 pointers.
Int64Slice converts a slice of int64 values into a slice of int64 pointers.
Int64Value :: return the value of the int64 pointer passed in or 0 if the pointer is nil.
Int64ValueMap converts a string map of int64 pointers into a string map of int64 values.
Int64ValueSlice converts a slice of int64 pointers into a slice of int64 values.
Int8 :: return a pointer to the int8 value passed in.
Int8Map converts a string map of int8 values into a string map of int8 pointers.
Int8Slice converts a slice of int8 values into a slice of int8 pointers.
Int8Value :: return the value of the int8 pointer passed in or 0 if the pointer is nil.
Int8ValueMap converts a string map of int8 pointers into a string map of int8 values.
Int8ValueSlice converts a slice of int8 pointers into a slice of int8 values.
IntMap converts a string map of int values into a string map of int pointers.
IntSlice converts a slice of int values into a slice of int pointers.
IntToString converts interface to a string representation of an int.
IntValue :: return the value of the int pointer passed in or 0 if the pointer is nil.
IntValueMap converts a string map of int pointers into a string map of int values.
IntValueSlice converts a slice of int pointers into a slice of int values.
No description provided by the author
No description provided by the author
MillisecondsTimeValue converts an int64 pointer to a time.Time value representing milliseconds sinch Epoch or time.Time{} if the pointer is nil.
SafeString converts a value from *string to string.
SecondsTimeValue converts an int64 pointer to a time.Time value representing seconds since Epoch or time.Time{} if the pointer is nil.
String :: return a pointer to the string value passed in.
StringMap converts a string map of string values into a string map of string pointers.
StringSlice converts a slice of string values into a slice of string pointers.
StringToBool :: try to map a string value to true or false, using a dictionary of expected values.
StringValue :: return the value of the string pointer passed in or "" if the pointer is nil.
StringValueMap converts a string map of string pointers into a string map of string values.
StringValueSlice converts a slice of string pointers into a slice of string values.
Time :: return a pointer to the time.Time value passed in.
TimeMap converts a string map of time.Time values into a string map of time.Time pointers.
TimeSlice converts a slice of time.Time values into a slice of time.Time pointers.
TimeUnixMilli :: return a Unix timestamp in milliseconds from "January 1, 1970 UTC".
TimeValue :: return the value of the time.Time pointer passed in or time.Time{} if the pointer is nil.
TimeValueMap converts a string map of time.Time pointers into a string map of time.Time values.
TimeValueSlice converts a slice of time.Time pointers into a slice of time.Time values.
ToBool converts interface to an bool if interface is not convertible or parseable as a bool, return an error.
ToBoolPtr converts interface to a bool pointer if the value is nil, or there is a conversion error, return nil.
ToFloat64 converts interface to an float64 if interface is not convertible or parseable as a float64, return an error.
ToInt64 converts interface to an int64 if interface is not convertible or parseable as an int64, return an error.
ToString converts most types value to a string.
ToTime converts interface to an time if interface is not convertible or parseable as a time, return an error.
Uint :: return a pointer to the uint value passed in.
Uint16 :: return a pointer to the uint16 value passed in.
Uint16Map converts a string map of uint16 values into a string map of uint16 pointers.
Uint16Slice converts a slice of uint16 values into a slice of uint16 pointers.
Uint16Value :: return the value of the uint16 pointer passed in or 0 if the pointer is nil.
Uint16ValueMap converts a string map of uint16 pointers into a string map of uint16 values.
Uint16ValueSlice converts a slice of uint16 pointers into a slice of uint16 values.
Uint32 :: return a pointer to the uint32 value passed in.
Uint32Map converts a string map of uint32 values into a string map of uint32 pointers.
Uint32Slice converts a slice of uint32 values into a slice of uint32 pointers.
Uint32Value :: return the value of the uint32 pointer passed in or 0 if the pointer is nil.
Uint32ValueMap converts a string map of uint32 pointers into a string map of uint32 values.
Uint32ValueSlice converts a slice of uint32 pointers into a slice of uint32 values.
Uint64 :: return a pointer to the uint64 value passed in.
Uint64Map converts a string map of uint64 values into a string map of uint64 pointers.
Uint64Slice converts a slice of uint64 values into a slice of uint64 pointers.
Uint64Value :: return the value of the uint64 pointer passed in or 0 if the pointer is nil.
Uint64ValueMap converts a string map of uint64 pointers into a string map of uint64 values.
Uint64ValueSlice converts a slice of uint64 pointers into a slice of uint64 values.
Uint8 :: return a pointer to the uint8 value passed in.
Uint8Map converts a string map of uint8 values into a string map of uint8 pointers.
Uint8Slice converts a slice of uint8 values into a slice of uint8 pointers.
Uint8Value :: return the value of the uint8 pointer passed in or 0 if the pointer is nil.
Uint8ValueMap converts a string map of uint8 pointers into a string map of uint8 values.
Uint8ValueSlice converts a slice of uint8 pointers into a slice of uint8 values.
UintMap converts a string map of uint values uinto a string map of uint pointers.
UintSlice converts a slice of uint values uinto a slice of uint pointers.
UintValue :: return the value of the uint pointer passed in or 0 if the pointer is nil.
UintValueMap converts a string map of uint pointers uinto a string map of uint values.
UintValueSlice converts a slice of uint pointers uinto a slice of uint values.