Skip to content

Commit

Permalink
Add go fmt command.
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jun 28, 2016
1 parent 06582a8 commit da12569
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -69,6 +70,9 @@ bundle:
bundle_update:
glide update --all-dependencies --resolve-current

fmt:
@echo $(TARGETS_NOVENDOR) | xargs go fmt -w

lint:
golint gorush

Expand Down

0 comments on commit da12569

Please sign in to comment.