code: func pathSplit(path string) []string {
  	path = filepath.FromSlash(path)
  	return strings.Split(path, string(filepath.Separator))
  }
docs: // pathSplit splits a file path into its elements, retaining empty ones. Before
  // splitting, slashes are replaced with filepath.Separator, so that splitting
  // Unix paths on Windows works as well.