add: 说明

This commit is contained in:
yuanzhao
2023-10-19 17:57:07 +08:00
parent dba70d66e2
commit 6bc2c1971d
2 changed files with 10 additions and 0 deletions

View File

@@ -10,4 +10,9 @@ build:
build-win:
go build -ldflags="-w -s" -o $(GOBIN)/toolset.exe ./
build-all:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o ./build/toolset-linux ./
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o ./build/toolset-win.exe ./
go build -ldflags="-w -s" -o ./build/toolset-mac ./
# toolset make:protoc -go_out=plugins=grpc:@root/generate/proto -debug=true

View File

@@ -1,8 +1,13 @@
# toolset 一个go项目工具集合
1. 有 go 环境安装
````shell
go install github.com/go-home-admin/toolset
````
2. 直接下载二进制文件, 放到任意 path 包含的路径下
![image](https://github.com/go-home-admin/toolset/blob/main/show.gif)