s := []string{"a","b", "c", "d"}
chunk ,pice := slices.ChunkStringSlice(s , 2)
// chunk = [["a", "b"],["c","d"]], pice = 2
radrupt / goutil Goto Github PK
View Code? Open in Web Editor NEWThis project forked from fengshux/goutil
go util for int string slice map