Reflect is crying due to moving to pointer recievers
1 files changed, 3 insertions(+), 3 deletions(-)

M feedback.go
M feedback.go +3 -3
@@ 69,7 69,7 @@ type Record struct {
 	UnsubscribeURL   string `json:"UnsubscribeURL"`
 }
 
-func (r *Record) getBytesToSign() []byte {
+func (r Record) getBytesToSign() []byte {
 	var fields []string
 	var lines bytes.Buffer
 	if r.Type == "Notification" {

          
@@ 92,14 92,14 @@ func (r *Record) getBytesToSign() []byte
 	return lines.Bytes()
 }
 
-func (r *Record) signatureAlgorithm() x509.SignatureAlgorithm {
+func (r Record) signatureAlgorithm() x509.SignatureAlgorithm {
 	if r.SignatureVersion == "2" {
 		return x509.SHA256WithRSA
 	}
 	return x509.SHA1WithRSA
 }
 
-func (r *Record) verify() error {
+func (r Record) verify() error {
 	// Get signature
 	signature, err := base64.StdEncoding.DecodeString(r.Signature)
 	if err != nil {