Documentation ¶
Index ¶
- Constants
- func CleanSlug(s string, setLower bool) string
- func CustomRelativeTime(a, b time.Time, albl, blbl string, magnitudes []RelativeTimeMagnitude) string
- func Ftoa(num float64) string
- func FtoaWithDigits(num float64, digits int) string
- func HumanizeTime(then time.Time) string
- func RelativeTime(a, b time.Time, albl, blbl string) string
- func SendNotification(title string, body string) error
- func Unique(x []time.Time) []time.Time
- type Options
- type RelativeTimeMagnitude
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CleanSlug ¶ added in v0.0.19
CleanSlug removes non-alphanumeric characters from a string and will lowercase the string if setLower is true.
func CustomRelativeTime ¶
func CustomRelativeTime(a, b time.Time, albl, blbl string, magnitudes []RelativeTimeMagnitude) string
func FtoaWithDigits ¶
FtoaWithDigits converts a float to a string but limits the resulting string to the given number of decimal places, and no trailing zeros.
func HumanizeTime ¶
func SendNotification ¶ added in v0.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.