瀏覽代碼

Merge pull request #300 from cespare/make-fmt

Add a 'fmt' target to the Makefile.
Solomon Hykes 12 年之前
父節點
當前提交
50500cfcb6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Makefile

+ 3 - 0
Makefile

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