Documentation ¶
Index ¶
- Constants
- func Bypass(tripper http.RoundTripper) http.RoundTripper
- 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 Unique(x []time.Time) []time.Time
- type Options
- type RelativeTimeMagnitude
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Bypass ¶ added in v0.0.20
func Bypass(tripper http.RoundTripper) http.RoundTripper
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 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.