code: func stripPathShortcuts(p string) string {
  	newPath := path.Clean(p)
  	trimmed := strings.TrimPrefix(newPath, "../")
  
  	for trimmed != newPath {
  		newPath = trimmed
  		trimmed = strings.TrimPrefix(newPath, "../")
  	}
  
  	// trim leftover {".", ".."}
  	if newPath == "." || newPath == ".." {
  		newPath = ""
  	}
  
  	if len(newPath) > 0 && string(newPath[0]) == "/" {
  		return newPath[1:]
  	}
  
  	return newPath
  }
docs: // stripPathShortcuts removes any leading or trailing "../" from a given path