From 741a443d40ed125dc686f6b30f643523a6aac8b1 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. Upstream-commit: 9b13d21fc980b5ac12e035d9c8cbe3ef2c36a079 Component: engine --- components/engine/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/engine/Makefile b/components/engine/Makefile index e716762d31..6a9719078e 100644 --- a/components/engine/Makefile +++ b/components/engine/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 {} \;