Documentation ¶
Overview ¶
Package humanize transforms values into more user friendly representations.
Index ¶
- func Duration(duration time.Duration) string
- func Error(err error) string
- func Number(value float64, decimals int) string
- func Optional[T time.Duration | time.Time | string | int | int32 | int64](o optional.Optional[T], fallback string) string
- func OptionalFloat[T float32 | float64](o optional.Optional[T], decimals int, fallback string) string
- func RomanLetter[T constraints.Integer](v T) string
- func Time(v time.Time, fallback string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptionalFloat ¶
func RomanLetter ¶
func RomanLetter[T constraints.Integer](v T) string
RomanLetter returns a number as roman letters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.