commit 0b48ca605745fd247e239cbf17f8523592eae24f
parent 77cb139c56710119566f2ea16fe2d7ecb693945c
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Tue, 15 Aug 2023 23:18:50 +0200
feat: add gofmt to Makefile
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,6 +1,7 @@
GO=go
GOTEST=$(GO) test
GOCOVER=$(GO) tool cover
+GOFMT=gofmt
hivedav:
$(GO) build
@@ -12,6 +13,10 @@ all: hivedav
clean:
$(GO) clean
+.PHONY: fmt
+fmt:
+ $(GOFMT) -w ***/*.go
+
.PHONY: test
test:
$(GOTEST) ./...
diff --git a/README.md b/README.md
@@ -14,7 +14,7 @@ make
## Linting
```bash
-gofmt -w ***/*.go
+make fmt
```
## Testing