From 4e61f852a2a672301179fefe690b9320f6038f0a Mon Sep 17 00:00:00 2001 From: eeeXun Date: Sat, 13 May 2023 10:46:02 +0800 Subject: [PATCH] docs: add go build --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 97998a0..8e5844e 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,12 @@ Binary file is available in [Release Page](https://github.com/eeeXun/gtt/release go install github.com/eeeXun/gtt@latest ``` +or + +``` +git clone https://github.com/eeeXun/gtt.git && cd gtt && go build -ldflags="-s -w -X main.version=$(git describe --tags)" +``` + ### Run on Docker ```