text := "a,b,c,d"
re := regexp.MustCompile(`,`)

parts := re.Split(text, -1)
fmt.Println(parts) // خروجی: ["a" "b" "c" "d"]