code: func canAccessFile(path string) bool {
  	if fi, err := os.Stat(path); err == nil {
  		return fi.Mode().Perm()&0400 != 0
  	}
  	return false
  }
docs: // canAccessFile determines if the filename can be opened for reading.