From 506ca71d8f1bfc1b8e576255f8105ef99d2a65a2 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Mon, 12 Dec 2022 16:21:58 -0600 Subject: [PATCH] Reflect is crying due to moving to pointer recievers --- feedback.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/feedback.go b/feedback.go index fdf238b..e8ffe38 100644 --- a/feedback.go +++ b/feedback.go @@ -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 { -- 2.45.2