Documentation
¶
Overview ¶
Package utils provides focused helpers for working with string slices whose entries may be blank.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountNonEmpty ¶
CountNonEmpty returns the number of entries that are not blank after trimming whitespace.
func HasNonEmpty ¶
HasNonEmpty reports whether any entry is not blank after trimming whitespace.
func NormalizeSet ¶
NormalizeSet trims every entry, drops blanks and duplicates, and returns the remaining entries sorted. The input slice is not modified.
Types ¶
This section is empty.