Browse Source

build-sys: replace gofmt.sh with `make fmt`

Signed-off-by: Alejandro Mery <amery@jpi.io>
v0.2.x
Alejandro Mery 3 years ago
parent
commit
d289643458
  1. 15
      Makefile
  2. 4
      gofmt.sh

15
Makefile

@ -0,0 +1,15 @@
.PHONY: all fmt build test
GO ?= go
all: fmt build
fmt:
$(GO) fmt ./...
$(GO) mod tidy || true
build:
$(GO) get -v ./...
test:
$(GO) test -v ./...

4
gofmt.sh

@ -1,4 +0,0 @@
#!/bin/sh
BASE="$(dirname "$0")"
exec gofmt -l -w -e -s -- $(find "$BASE" -type f -name '*.go')
Loading…
Cancel
Save