Documentation ¶
Index ¶
- func ConformTimestamp(timestamp string) (*time.Time, error)
- func DaysBetweenDates(a time.Time, b time.Time) float64
- func FormatMoney(value float64, precision int) string
- func PopString(str string, sep string) string
- func PrettyDate(timestamp string) string
- func Round(value float64) float64
- func SubtractDaysFromDate(date time.Time, days int) time.Time
- func Truncate(str string, length int, suffix string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConformTimestamp ¶
ConformTimestamp converts an RFC3339 timestamp string to a `time.Time`
func DaysBetweenDates ¶
DaysBetweenDates calculates the number of days between two dates
func FormatMoney ¶
func PrettyDate ¶
PrettyDate formats a RFC3339 date string to be pretty
func SubtractDaysFromDate ¶
SubtractDaysFromDate subtracts given days from given date and returns date
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.