code: func SplitPath(pat string) (routes []string, err error) {
  	scanner := bufio.NewScanner(strings.NewReader(pat))
  	scanner.Split(routeSplitFunc)
  	for scanner.Scan() {
  		routes = append(routes, scanner.Text())
  	}
  	err = scanner.Err()
  	return
  }
docs: // SplitPath splits the url pattern.