parser.go
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
}
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
}
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 }
// SplitPath splits the url pattern.
SplitPath splits the url pattern .