Gointrogo1
strings and strconv
The two packages you reach for on day one of text wrangling.
Go strings are immutable UTF-8 byte sequences — strings slices, joins, and searches them, while strconv bridges text and numbers.
Split a CSV row, then re-join it
Gointro0ms
[alice bob carol] count: 3alice | bob | carol
Reference · output compiled offline, not runnable in-browser
Split turns the comma-delimited string into a []string of length 3, and Join glues those parts back with a new separator — showing the round trip between a string and its slice form.