code: func addPath(paths []string, path string) []string {
  	for _, existingpath := range paths {
  		if path == existingpath {
  			return paths
  		}
  	}
  	return append(paths, path)
  }
docs: // addPath appends path to paths if path does not already exist in paths. Returns
  // the new paths.