Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CharacterClass ¶
CharacterClass splits on any character from the separator string. Similar to splitting on a regex character class [chars].
func Exact ¶
Exact always splits on the exact separator string. Unlike Whitespace, it treats " " as a literal space, not as "any whitespace".
func Whitespace ¶
Whitespace splits on whitespace (spaces, tabs, etc.) when separator is " ". For any other separator, it splits on that exact string. This mimics awk's default field splitting behavior.
Types ¶
type FieldFunc ¶
FieldFunc splits a line into fields based on a separator. This abstraction enables custom field splitting logic and testing.
Click to show internal directories.
Click to hide internal directories.