Splitting a String into a Slice in Golang
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