From 3bcf444d3483a4c4c9af700e8b4e866dc631b02d Mon Sep 17 00:00:00 2001 From: taoshihan Date: Sat, 2 Aug 2025 11:25:42 +0800 Subject: [PATCH] update name --- cmd/server.go | 3 +-- gofly.go => main.go | 0 readme.md | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) rename gofly.go => main.go (100%) diff --git a/cmd/server.go b/cmd/server.go index 4d2cd42..6979573 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -1,7 +1,6 @@ package cmd import ( - "fmt" "github.com/gin-gonic/gin" "github.com/spf13/cobra" "github.com/zh-five/xdaemon" @@ -65,7 +64,7 @@ func run() { router.InitViewRouter(engine) router.InitApiRouter(engine) //记录pid - os.WriteFile("gofly.sock", []byte(fmt.Sprintf("%d,%d", os.Getppid(), os.Getpid())), 0666) + //os.WriteFile("gofly.sock", []byte(fmt.Sprintf("%d,%d", os.Getppid(), os.Getpid())), 0666) //限流类 tools.NewLimitQueue() //清理 diff --git a/gofly.go b/main.go similarity index 100% rename from gofly.go rename to main.go diff --git a/readme.md b/readme.md index 5006e1c..d5541be 100644 --- a/readme.md +++ b/readme.md @@ -56,11 +56,11 @@ cd goflylivechat ``` * Initialize the Database ```php - go run gofly.go install + go run main.go install ``` * Run the Application ```php - go run gofly.go server + go run main.go server ``` * ​​Build executable ```php