.PHONY : env
env :
export GOPROXY=https://mirrors.cloud.tencent.com/go/
go install -v github.com/haya14busa/goplay/cmd/goplay@latest
go install -v honnef.co/go/tools/cmd/staticcheck@latest
go install -v golang.org/x/tools/gopls@latest
go install -v github.com/ramya-rao-a/go-outline@latest
go install -v github.com/cweill/gotests/gotests@latest
go install -v github.com/josharian/impl@latest
go install -v github.com/go-delve/delve/cmd/dlv@latest
go install -v github.com/rogpeppe/godef@latest
go install -v golang.org/x/tools/cmd/goimports@latest
go install -v github.com/ramya-rao-a/go-outline@latest
export PATH =$PATH:$GOPATH/bin/
.PHONY : build
build :
CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build
scp ./mqtt firefly@192.168.1.23:/home
#root@192.168.118.9
all :
rm -rf ./mqtt
CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build
./mqtt
golang make file
最新推荐文章于 2024-04-30 19:17:29 发布