code: func trimPath(path string) string {
  	basePaths := []string{
  		"/proc/self/cwd/./",
  		"/proc/self/cwd/",
  	}
  
  	sPath := filepath.ToSlash(path)
  
  	for _, base := range basePaths {
  		if strings.HasPrefix(sPath, base) {
  			return filepath.FromSlash(sPath[len(base):])
  		}
  	}
  	return path
  }
docs: // trimPath cleans up a path by removing prefixes that are commonly
  // found on profiles.