From 1d0f75ece3ac6707bc7d63aa1e8b3439dd031c45 Mon Sep 17 00:00:00 2001 From: eeeXun Date: Sun, 13 Aug 2023 12:04:24 +0800 Subject: [PATCH] docs: add ldflags in go install --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3e5625..c479679 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Binary file is available in [Release Page](https://github.com/eeeXun/gtt/release #### go install ```sh -go install github.com/eeeXun/gtt@latest +go install -ldflags="-s -w" github.com/eeeXun/gtt@latest ``` And make sure `$HOME/go/bin` is in your `$PATH`