package main import ( "strings" ) // parseIPRange parses a string of IP ranges into start and end IP slices func parseIPRange(input string) ([]string, []string) { lines := strings.Split(input, "\n") var srange, erange []string for _, line := range lines { parts := strings.Fields(line) if len(parts) >= 2 { srange = append(srange, parts[0]) erange = append(erange, parts[1]) } } return srange, erange }