From 9b13d21fc980b5ac12e035d9c8cbe3ef2c36a079 Mon Sep 17 00:00:00 2001 From: Caleb Spare Date: Mon, 1 Apr 2013 13:05:00 -0700 Subject: [PATCH] Add a 'fmt' target to the Makefile. A convenience for gofmting all the code, including subpackages. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index e716762d31..6a9719078e 100644 --- a/Makefile +++ b/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 {} \;