Documentation ¶
Index ¶
- Constants
- func BoolToCheckbox(b bool) template.HTML
- func BoolToHTML(b bool) template.HTML
- func CountryCodeToFlag(cc string) string
- func HumanDistanceFor(unit string) func(float64) string
- func HumanDistanceKM(d float64) string
- func HumanDistanceMile(d float64) string
- func HumanDuration(d time.Duration) string
- func HumanElevationFor(unit string) func(float64) string
- func HumanElevationFt(m float64) string
- func HumanElevationM(m float64) string
- func HumanSpeedFor(unit string) func(float64) string
- func HumanSpeedKPH(mps float64) string
- func HumanSpeedMilePH(mps float64) string
- func HumanTempoFor(unit string) func(float64) string
- func HumanTempoKM(mps float64) string
- func HumanTempoMile(mps float64) string
- func IconFor(what string) template.HTML
- func NumericDuration(d time.Duration) float64
- func SelectIf(v1, v2 string) template.HTML
- type DecoratedAttribute
- type LanguageInformation
- type TZ
Constants ¶
View Source
const InvalidValue = "N/A"
Variables ¶
This section is empty.
Functions ¶
func BoolToCheckbox ¶
func BoolToHTML ¶
func CountryCodeToFlag ¶
func HumanDistanceFor ¶ added in v0.12.0
func HumanDistanceKM ¶ added in v0.12.0
func HumanDistanceMile ¶ added in v0.12.0
func HumanDuration ¶
func HumanElevationFor ¶ added in v0.12.0
func HumanElevationFt ¶ added in v0.12.0
func HumanElevationM ¶ added in v0.12.0
func HumanSpeedFor ¶ added in v0.12.0
func HumanSpeedKPH ¶ added in v0.12.0
func HumanSpeedMilePH ¶ added in v0.12.0
func HumanTempoFor ¶ added in v0.12.0
func HumanTempoKM ¶ added in v0.12.0
func HumanTempoMile ¶ added in v0.12.0
func NumericDuration ¶
Types ¶
type DecoratedAttribute ¶
func BuildDecoratedAttribute ¶
func BuildDecoratedAttribute(icon, name string, value interface{}, unit string) DecoratedAttribute
type LanguageInformation ¶
func ToLanguageInformation ¶
func ToLanguageInformation(code string) LanguageInformation
Click to show internal directories.
Click to hide internal directories.