Fix goimports

This commit is contained in:
c-bata 2018-10-25 19:21:47 +09:00
parent 0ad87c6ff6
commit 0385870b84
2 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,6 @@ install:
script:
- go build ./_example/simple-echo/main.go
- diff <(goimports -d .) <(echo -n "")
- diff <(goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")) <(echo -n "")
- make lint
- make test

View File

@ -10,7 +10,7 @@ setup: ## Setup for required tools.
.PHONY: fmt
fmt: ## Formatting source codes.
@goimports -w .
@goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*")
.PHONY: lint
lint: ## Run golint and go vet.