From edf617adf0b571e727c1aa331ae52cff4181c627 Mon Sep 17 00:00:00 2001 From: yangyudong <916291030@qq.com> Date: Mon, 2 Jun 2025 22:36:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B6=88=E6=81=AF=E5=8F=91?= =?UTF-8?q?=E9=80=81=E6=97=B6=E7=BC=BA=E5=B0=91=E6=8D=A2=E8=A1=8C=E7=AC=A6?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=9B=E6=9B=B4=E6=96=B0=20go.mod?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6=E4=BB=A5=E7=A7=BB=E9=99=A4=E9=97=B4?= =?UTF-8?q?=E6=8E=A5=E4=BE=9D=E8=B5=96=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/main.go | 2 +- go.mod | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/main.go b/client/main.go index 8f67052..8cb75bb 100644 --- a/client/main.go +++ b/client/main.go @@ -41,7 +41,7 @@ func main() { fmt.Println("退出客户端") break } - _, err := conn.Write([]byte(text)) + _, err := conn.Write([]byte(text + "\n")) if err != nil { log.Printf("发送消息失败: %v", err) break diff --git a/go.mod b/go.mod index dc045df..e23d70e 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,6 @@ module chatv1 go 1.24.0 require ( - github.com/mattn/go-sqlite3 v1.14.28 // indirect - golang.org/x/crypto v0.38.0 // indirect + github.com/mattn/go-sqlite3 v1.14.28 + golang.org/x/crypto v0.38.0 )