code: func whitelistKey(whiteKeys []string, key string) bool {
  	for _, whiteKey := range whiteKeys {
  		if key == whiteKey {
  			return true
  		}
  	}
  	return false
  }
docs: // return true if the key is in the whitelist