code: func checkMAC(message, messageMAC, key []byte, hashFunc func() hash.Hash) bool {
  	expectedMAC := genMAC(message, key, hashFunc)
  	return hmac.Equal(messageMAC, expectedMAC)
  }
docs: // checkMAC reports whether messageMAC is a valid HMAC tag for message.