util

package
v0.26.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func DedupeNonEmptyStrings(values []string) []string

DedupeNonEmptyStrings returns a copy of values without empty strings or duplicates, preserving order.

func DedupeSortedStrings added in v0.17.1

func DedupeSortedStrings(values []string) []string

DedupeSortedStrings removes consecutive duplicates from a sorted slice.

func SortedKeys added in v0.23.6

func SortedKeys[M ~map[K]V, K ~string, V any](m M) []K

func TrimLeadingSpaceOnce added in v0.21.3

func TrimLeadingSpaceOnce(s string) string

func TrimLeftSpace added in v0.21.3

func TrimLeftSpace(s string) string

func TrimRightSpace added in v0.21.3

func TrimRightSpace(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL