From 510a9e13dbf7007574ebfb022527af88608c887b Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Sun, 13 Aug 2023 11:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E8=B5=84=E6=96=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- Software/Development/Language/Go/Linux_下搭建_Go_开发环境.md | 1 + Software/Development/Language/Go/Package/GioUI/GioUI_概览.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Software/Development/Language/Go/Linux_下搭建_Go_开发环境.md b/Software/Development/Language/Go/Linux_下搭建_Go_开发环境.md index a949d90..0298810 100644 --- a/Software/Development/Language/Go/Linux_下搭建_Go_开发环境.md +++ b/Software/Development/Language/Go/Linux_下搭建_Go_开发环境.md @@ -43,6 +43,7 @@ go install github.com/haya14busa/goplay/cmd/goplay@latest go install honnef.co/go/tools/cmd/staticcheck@latest go install golang.org/x/tools/gopls@latest go install golang.org/x/tools/cmd/godoc@latest +go install golang.org/x/tools/cmd/goimports ``` ### 1.3. VSCode 配置 diff --git a/Software/Development/Language/Go/Package/GioUI/GioUI_概览.md b/Software/Development/Language/Go/Package/GioUI/GioUI_概览.md index 1b12836..052fcc3 100644 --- a/Software/Development/Language/Go/Package/GioUI/GioUI_概览.md +++ b/Software/Development/Language/Go/Package/GioUI/GioUI_概览.md @@ -114,6 +114,8 @@ func run(w *app.Window) error { ```bash go mod tidy go run . +# Windows 下运行时不弹出命令行窗口. +go build -ldflags "-s -w -H=windowsgui -extldflags=-static" ``` ### 2.1. PC 示例说明