From 8539c4c12ebdd6441f5d93fd499e31df2ed943c3 Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Tue, 29 Aug 2017 22:29:33 -0700 Subject: Go formatter "gofmt" -> "goimports" --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1ec009e..af1d4ab 100644 --- a/Makefile +++ b/Makefile @@ -129,11 +129,11 @@ update: # Format all the Go and C code .PHONY: format format-check format: - @gofmt -l -s -w $(GO_FILES) + @goimports -l -w $(GO_FILES) @clang-format -i -style=Google $(C_FILES) format-check: - @gofmt -s -d $(GO_FILES) \ + @goimports -d $(GO_FILES) \ | ./input_fail.py "Incorrectly formatted Go files. Run \"make format\"." @clang-format -i -style=Google -output-replacements-xml $(C_FILES) \ | grep "