1
0
mirror of https://github.com/taigrr/wtf synced 2026-03-26 16:42:19 -07:00

feat: update to go modules

This commit is contained in:
retgits
2019-04-26 16:39:44 -07:00
parent 66a16af97d
commit e03b65b442
1471 changed files with 207 additions and 466677 deletions

View File

@@ -1,26 +0,0 @@
.PHONY: fmt vet check-vendor lint check clean test build
PACKAGES = $(shell go list ./...)
PACKAGE_DIRS = $(shell go list -f '{{ .Dir }}' ./...)
check: test vet lint
test:
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
vet:
go vet $(PACKAGES) || (go clean $(PACKAGES); go vet $(PACKAGES))
lint:
gometalinter --config gometalinter.json ./...
fmt:
go fmt $(PACKAGES)
goimports -w $(PACKAGE_DIRS)
deps:
go get -t -v ./...
go get github.com/axw/gocov/gocov
go get golang.org/x/tools/cmd/cover
[ -f $(GOPATH)/bin/gometalinter ] || go get -u github.com/alecthomas/gometalinter
[ -f $(GOPATH)/bin/goimports ] || go get golang.org/x/tools/cmd/goimports
gometalinter --install