" -> "

-ldflags "-H windowsgui" 중 " 이후 부분 잘리는 현상 해결.
This commit is contained in:
khjde1207 2017-03-29 13:37:09 +09:00 committed by GitHub
parent 3cb76438ff
commit 687c953931
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) {
user := conf.GetUser(username) user := conf.GetUser(username)
if "GET" == r.Method { if "GET" == r.Method {
user.GoBuildArgsForLinux = strings.Replace(user.GoBuildArgsForLinux, `"`, `"`, -1)
user.GoBuildArgsForWindows = strings.Replace(user.GoBuildArgsForWindows, `"`, `"`, -1)
user.GoBuildArgsForDarwin = strings.Replace(user.GoBuildArgsForDarwin, `"`, `"`, -1)
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(user.Locale), "user": user, model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(user.Locale), "user": user,
"ver": conf.WideVersion, "goos": runtime.GOOS, "goarch": runtime.GOARCH, "gover": runtime.Version(), "ver": conf.WideVersion, "goos": runtime.GOOS, "goarch": runtime.GOARCH, "gover": runtime.Version(),
"locales": i18n.GetLocalesNames(), "gofmts": util.Go.GetGoFormats(), "locales": i18n.GetLocalesNames(), "gofmts": util.Go.GetGoFormats(),