code: func ExtractRootPaths(paths []string) []string {
  	r := make([]string, len(paths))
  	for i, p := range paths {
  		root := filepath.ToSlash(p)
  		sections := strings.Split(root, "/")
  		for _, section := range sections {
  			if section != "" {
  				root = section
  				break
  			}
  		}
  		r[i] = root
  	}
  	return r
  
  }
docs: // ExtractRootPaths extracts the root paths from the supplied list of paths.
  // The resulting root path will not contain any file separators, but there
  // may be duplicates.
  // So "/content/section/" becomes "content"