From 5ab2f1dcccc8311a7d0ad2fc62c4c43b010a46cd Mon Sep 17 00:00:00 2001 From: nopdan Date: Wed, 13 Mar 2024 20:21:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=A8=E9=83=A8=E6=96=87=E6=9C=AC=20?= =?UTF-8?q?=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/server/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/server/server.go b/pkg/server/server.go index 283fb30..798d388 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -40,6 +40,7 @@ func Serve(port int, silent bool, prefix string) { DictDir: filepath.Join(prefix, "dict"), } res.Text = util.WalkDirWithSuffix(res.TextDir, ".txt") + textList = res.Text res.Dict = util.WalkDirWithSuffix(res.DictDir, ".txt") json.NewEncoder(w).Encode(res) })