func BeforeImportPathSeparator(path string) string {
	switch i := strings.IndexByte(path, importPathSeparator); i {
	default:
		return path[:i]
	case -1:
		return path
	}
}
BeforeImportPathSeparator returns the path before the import path separator.
package route
import "strings"
const importPathSeparator = '$'