code: func fileExist(filename string) (ok bool) {
  	info, err := os.Stat(filename)
  	if err == nil {
  		if ^os.ModePerm&info.Mode() == 0 {
  			ok = true
  		}
  	}
  	return ok
  }
docs: // fileExist returns true if the specified normal file exists