This commit is contained in:
bel
2024-04-11 23:01:40 -06:00
parent def095e0e8
commit ea902cef86
7 changed files with 98 additions and 17 deletions

View File

@@ -14,6 +14,10 @@ type Message struct {
AssetID string
}
func (m Message) Empty() bool {
return m == (Message{})
}
func (m Message) Serialize() []byte {
b, err := json.Marshal(m)
if err != nil {