Closed sbinet closed 6 years ago
That's interesting. I've never seen that before, but I kinda like it.
A couple projects of mine use makefiles so I just bundle vet
/fmt
in make build
.
https://github.com/adamdecaf/cert-manage/blob/master/makefile#L17
My other solution, instead of having one makefile per project (which can become somewhat stale) is to have one program that generates it on the fly and run 'make' on it:
github.com/sbinet/mk
we could go this way. recently, I went that way: https://github.com/go-hep/hep/blob/master/hep_test.go#L13 ie: a test is run that checks the files are correctly
gofmt
'ed.go vet
is run automatically withgo-1.10
.