From cdc1f5408b077ffd639d4663a203ac865342a176 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 29 May 2019 18:48:08 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BA=A4=E5=8F=89=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 9086c31..f91ea00 100644 --- a/main.go +++ b/main.go @@ -73,7 +73,7 @@ func init() { session.FixedTimeRelease() session.FixedTimeReport() - logger.Debug("host ["+runtime.Version()+", "+runtime.GOOS+"_"+runtime.GOARCH+"], cross-compilation ", gulu.Go.GetCrossPlatforms()) + logger.Debug("host [" + runtime.Version() + ", " + runtime.GOOS + "_" + runtime.GOARCH + "]") } // Main. @@ -203,7 +203,7 @@ func indexHandler(w http.ResponseWriter, r *http.Request) { model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(locale), "locale": locale, "uid": uid, "sid": session.WideSessions.GenId(), "latestSessionContent": user.LatestSessionContent, "pathSeparator": conf.PathSeparator, "codeMirrorVer": conf.CodeMirrorVer, - "user": user, "editorThemes": conf.GetEditorThemes(), "crossPlatforms": gulu.Go.GetCrossPlatforms()} + "user": user, "editorThemes": conf.GetEditorThemes(), "crossPlatforms": []string{"darwin_amd64", "linux_amd64", "windows_amd64"}} logger.Debugf("User [%s] has [%d] sessions", uid, len(wideSessions))