Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaseCamelToSnake ¶
func FormatFloa32 ¶
FormatFloa32 returns the string representation with all of the insignificant digits removed.
For example, "001.500" becomes "1.5".
func FormatFloa64 ¶
FormatFloa64 returns the string representation with all of the insignificant digits removed.
For example, "001.500" becomes "1.5".
func FormatRanges ¶
func FormatRanges[T constraints.Integer | constraints.Float](ranges []T) string
FormatRanges formats a slice of integers into a string of ranges.
FormatRanges([]int{1, 2, 3}) // "1-3" FormatRanges([]int{1, 2, 4}) // "1-2, 4" FormatRanges([]int{1, 3, 5}) // "1, 3, 5"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.