How to slice a string using a delimiter July 24, 2023 by Tarik You should use the strings package for that. stringSlice := strings.Split(s, ",") http://play.golang.org/p/UKZbcuJUPP