fix missing pointer

This commit is contained in:
Asim Aslam 2020-04-14 17:13:38 +01:00
parent 1134ea5ff3
commit c787fd0483

View File

@ -4,7 +4,7 @@ type Message struct {
Data []byte
}
func (m Message) MarshalJSON() ([]byte, error) {
func (m *Message) MarshalJSON() ([]byte, error) {
return m.Data, nil
}