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 示例说明