Documentation ¶
Index ¶
- func BoolPtr(condition bool) *bool
- func DecimalToHumanFriendlyString(number decimal.Decimal, rounding int, decPoint, thousandsSep string) string
- func FloatFromString(raw interface{}) (float64, error)
- func FloatToHumanFriendlyString(number float64, decimals uint, decPoint, thousandsSep string) string
- func Int64FromString(raw interface{}) (int64, error)
- func IntFromString(raw interface{}) (int, error)
- func IntToHumanFriendlyString(number int64, thousandsSep string) string
- func TimeFromUnixTimestampDecimal(input float64) time.Time
- func TimeFromUnixTimestampFloat(raw interface{}) (time.Time, error)
- func UnixTimestampStrToTime(timeStr string) (time.Time, error)
- func UnixTimestampToTime(timeint64 int64) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecimalToHumanFriendlyString ¶
func DecimalToHumanFriendlyString(number decimal.Decimal, rounding int, decPoint, thousandsSep string) string
DecimalToHumanFriendlyString converts a decimal number to a comma separated string at the thousand point eg 1000 becomes 1,000
func FloatFromString ¶
FloatFromString format
func FloatToHumanFriendlyString ¶
func FloatToHumanFriendlyString(number float64, decimals uint, decPoint, thousandsSep string) string
FloatToHumanFriendlyString converts a float to a comma separated string at the thousand point eg 1000 becomes 1,000
func IntToHumanFriendlyString ¶
IntToHumanFriendlyString converts an int to a comma separated string at the thousand point eg 1000 becomes 1,000
func TimeFromUnixTimestampDecimal ¶
TimeFromUnixTimestampDecimal converts a unix timestamp in decimal form to a time.Time
func TimeFromUnixTimestampFloat ¶
TimeFromUnixTimestampFloat format
func UnixTimestampStrToTime ¶
UnixTimestampStrToTime returns a time.time and an error
func UnixTimestampToTime ¶
UnixTimestampToTime returns time.time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.