go 实现Split函数

// SplitAny:split by any char
func SplitAny(str string, sep string) []string {
   result := make([]string,0)
   iLast := 0
   iStrLen:= len(str)
   for {
      //find Start
      iStart:=-1
      for i:=iLast;i 
 

你可能感兴趣的:(go,实现Split函数)