Add go fmt command.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-06-28 09:19:25 +08:00
parent 06582a8a47
commit da12569cff
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ BUILD_IMAGE := "gorush-build"
PRODUCTION_IMAGE := "gorush"
DEPLOY_ACCOUNT := "appleboy"
VERSION := $(shell git describe --tags)
TARGETS_NOVENDOR := $(shell glide novendor)
RANDOM := $(shell date '+%Y%m%d%H%M%S%s')
all: build
@ -69,6 +70,9 @@ bundle:
bundle_update:
glide update --all-dependencies --resolve-current
fmt:
@echo $(TARGETS_NOVENDOR) | xargs go fmt -w
lint:
golint gorush