代码拉取完成,页面将自动刷新
WORKDIR=`pwd`
default: build
vet:
go vet ./...
tools:
go get github.com/golangci/golangci-lint/cmd/golangci-lint
go get github.com/golang/lint/golint
go get github.com/axw/gocov/gocov
go get github.com/matm/gocov-html
golangci-lint:
golangci-lint run -D errcheck --build-tags 'quic kcp'
lint:
golint ./...
doc:
godoc -http=:6060
deps:
go list -f '{{ join .Deps "\n"}}' ./... |grep "/" | grep -v "github.com/smallnest/rpcx"| grep "\." | sort |uniq
fmt:
go fmt ./...
build:
go build ./...
build-all:
go build -tags "kcp quic" ./...
test:
go test -race -tags "kcp quic" ./...
cover:
gocov test -tags "kcp quic" ./... | gocov-html > cover.html
open cover.html
check-libs:
GIT_TERMINAL_PROMPT=1 GO111MODULE=on go list -m -u all | column -t
update-libs:
GIT_TERMINAL_PROMPT=1 GO111MODULE=on go get -u -v ./...
mod-tidy:
GIT_TERMINAL_PROMPT=1 GO111MODULE=on go mod tidy
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。