From ba33c4aba5e30eb1208d5a9f2c108e65ad7a51ac Mon Sep 17 00:00:00 2001 From: pcktdmp Date: Fri, 6 Mar 2020 12:41:45 +0100 Subject: [PATCH] receiver for Generate() can be a pointer (#13) --- cefevent/cefevent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cefevent/cefevent.go b/cefevent/cefevent.go index e3a5128..92124fa 100644 --- a/cefevent/cefevent.go +++ b/cefevent/cefevent.go @@ -41,7 +41,7 @@ func cefEscapeExtension(field string) string { return replacer.Replace(field) } -func (event CefEvent) Generate() string { +func (event *CefEvent) Generate() string { // todo: do this nicely with methods event.Version = cefEscapeField(event.Version)