package pkg import ( "strings" ) func FindAllSubStr(stack, niddle string) (result []int) { stack = strings.ToLower(stack) niddle = strings.ToLower(niddle) for idx := 1; idx >= 0; { if idx = strings.Index(stack, niddle); idx != -1 { result = append(result, idx) stack = stack[idx+1:] } } return result }