Add go fmt command.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
06582a8a47
commit
da12569cff
4
Makefile
4
Makefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue