code: func fileAccessible(path string) bool {
  	if info, err := os.Stat(path); err == nil {
  		return info.Mode().IsRegular()
  	}
  	return false
  }
docs: // fileAccessible checks if the given path exists and is a regular file