code: func pathIsFile(path string) bool {
  	info, err := os.Stat(path)
  	if err != nil {
  		return false
  	}
  
  	return !info.IsDir()
  }
docs: // Returns true if and only if the given path refers to a file or a symlink
  // to a file.