Skip to content

Commit

Permalink
fix (*slack.InteractionCallback).MarshalJSON for Go 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kanata2 committed Oct 10, 2020
1 parent d8b7a98 commit ac7b9d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ func (ic *InteractionCallback) MarshalJSON() ([]byte, error) {
} else if ic.Type == InteractionTypeDialogSubmission {
tmp.RawState = []byte(tmp.State)
}
return json.Marshal(tmp)
// Use pointer for go1.7
return json.Marshal(&tmp)
}

func (ic *InteractionCallback) UnmarshalJSON(b []byte) error {
Expand Down

0 comments on commit ac7b9d0

Please sign in to comment.