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