Documentation
¶
Index ¶
- func CloneSlice[T any](src []T) []T
- func DedupeNonEmptyStrings(values []string) []string
- func DedupeSortedStrings(values []string) []string
- func SortedKeys[M ~map[K]V, K ~string, V any](m M) []K
- func TrimLeadingSpaceOnce(s string) string
- func TrimLeftSpace(s string) string
- func TrimRightSpace(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneSlice ¶ added in v0.23.6
func CloneSlice[T any](src []T) []T
func DedupeNonEmptyStrings ¶
DedupeNonEmptyStrings returns a copy of values without empty strings or duplicates, preserving order.
func DedupeSortedStrings ¶ added in v0.17.1
DedupeSortedStrings removes consecutive duplicates from a sorted slice.
func SortedKeys ¶ added in v0.23.6
func TrimLeadingSpaceOnce ¶ added in v0.21.3
func TrimLeftSpace ¶ added in v0.21.3
func TrimRightSpace ¶ added in v0.21.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.