Splitting a String into a Slice in Golang

1 · Lane Wagner · April 15, 2021, 12:22 p.m.
The post Splitting a String into a Slice in Golang first appeared on Qvault. I can’t begin to tell you how often I split strings in Go. More often than not I’m just parsing a comma-separated list from an environment variable, and Go’s standard library gives us some great tools for that kind of manipulation. Split by commas or other delimiters strings.Split strings.SplitN Split by delimiters and retain the ... Read more...