소스 검색

Add a 'fmt' target to the Makefile.

A convenience for gofmting all the code, including subpackages.
Caleb Spare 12 년 전
부모
커밋
9b13d21fc9
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Makefile

+ 3 - 0
Makefile

@@ -41,3 +41,6 @@ endif
 
 test: all
 	@(cd $(DOCKER_DIR); sudo -E go test $(GO_OPTIONS))
+
+fmt:
+	@find . -name "*.go" -exec gofmt -l -w {} \;