Re: [go-nuts] go fmt and CI (e.g. gitlab)

2018-02-20 Thread Jérôme LAFORGE
Thx, it is perfect. Le lundi 19 février 2018 20:35:48 UTC+1, Stéphane Jeandeaux a écrit : > > > Hi Jerome, > > You can take a look at git hooks https://golang.org/misc/git/pre-commit. > > Code: > test -z "$(gofmt -s -l $(find . -name '*.go' -type f -print) | tee > /dev/stderr)" > > Thanks and reg

Re: [go-nuts] go fmt and CI (e.g. gitlab)

2018-02-19 Thread Stéphane Jeandeaux
Hi Jerome, You can take a look at git hooks https://golang.org/misc/git/pre-commit. Code: test -z "$(gofmt -s -l $(find . -name '*.go' -type f -print) | tee /dev/stderr)" Thanks and regards, Stephane Jeandeaux. On Mon, Feb 19, 2018 at 6:44 AM Jérôme LAFORGE wrote: > Hello Gophers, > Has any o