From a6db49947e25a12073f8a584311f34c3b8eb4a24 Mon Sep 17 00:00:00 2001 From: wuko233 Date: Fri, 13 Mar 2026 08:47:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF=E5=B9=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0.gitignore=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + internal/network/types.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f17875d..65989ac 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,4 @@ test/ # 编译文件 sysmonitord +fixroad.md diff --git a/internal/network/types.go b/internal/network/types.go index 60b5337..987a605 100644 --- a/internal/network/types.go +++ b/internal/network/types.go @@ -8,7 +8,7 @@ type Packet struct { Payload interface{} `json:"payload"` } -func NewPactet(msgType string, payload interface{}) Packet { +func NewPacket(msgType string, payload interface{}) Packet { return Packet{ Type: msgType, Timestamp: time.Now().Unix(),