diff --git a/.hooks/pre-commit b/.hooks/pre-commit index 37332a9..872661b 100755 --- a/.hooks/pre-commit +++ b/.hooks/pre-commit @@ -1,3 +1,6 @@ #!/usr/bin/env bash -go fmt *.go tests/*.go +go fmt *.go +go fmt tests/*.go + git add *.go tests/*.go +git add tests/*.go diff --git a/tests/main.go b/tests/main.go index 349f9a5..76dcf92 100644 --- a/tests/main.go +++ b/tests/main.go @@ -1,7 +1,9 @@ package main -import ("git.purser.it/roypur/envconf" - "fmt") +import ( + "fmt" + "git.purser.it/roypur/envconf" +) func main() { conf := envconf.NewConfig()