I want to parse a string xxxxx:yyyyy:zzz.aaa.bbb.cc:dd:ee:ff to a struct in Go, how can I do it with multiple delimiter \':\' and \'.\'.
Edit:
I want to split the
You can use regex for splitting your string
import "regexp" func splitWord(word string) []string { array := regexp.MustCompile("[\\:\\,\\.\\s]+").Split(word, -1) return array }