From 0ea666392d7758f6b64e5bdba1aa617fd3127336 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 24 Jul 2019 23:01:45 -0400 Subject: [PATCH] Structs held in ChatAPI need to be pointers in order to not be included in marshalled JSON --- types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types.go b/types.go index 8eac145..db6fa09 100644 --- a/types.go +++ b/types.go @@ -15,13 +15,13 @@ type RunOptions struct { type ChatAPI struct { Type string `json:"type,omitempty"` Source string `json:"source,omitempty"` - Msg msg `json:"msg,omitempty"` + Msg *msg `json:"msg,omitempty"` Method string `json:"method,omitempty"` - Params params `json:"params,omitempty"` + Params *params `json:"params,omitempty"` Message string `json:"message,omitempty"` ID int `json:"id,omitempty"` Ratelimits []rateLimits `json:"ratelimits,omitempty"` - Result result `json:"result,omitempty"` + Result *result `json:"result,omitempty"` keybase Keybase // Some methods will need this, so I'm passing it but keeping it unexported } type sender struct {