From 208da7e90fdb217ebb0788341c623b763c04547e Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 23 Aug 2024 19:33:02 +0800 Subject: [PATCH] :zap: Network package message omitempty --- pkg/hyper/network.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hyper/network.go b/pkg/hyper/network.go index 714ca5c..bcc27c3 100644 --- a/pkg/hyper/network.go +++ b/pkg/hyper/network.go @@ -5,7 +5,7 @@ import jsoniter "github.com/json-iterator/go" type NetworkPackage struct { Action string `json:"w"` Endpoint string `json:"e,omitempty"` - Message string `json:"m"` + Message string `json:"m,omitempty"` Payload any `json:"p"` }