check.sh 408 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. echo -n go fmt...
  3. go fmt && echo ok || echo fail
  4. echo -n go vet...
  5. go vet && echo ok || echo fail
  6. # github.com/golang/lint/golint
  7. echo -n golint...
  8. golint && echo ok || echo fail
  9. # tools from https://github.com/dominikh/go-tools
  10. echo -n gosimple...
  11. gosimple && echo ok || echo fail
  12. echo -n unused...
  13. gosimple && echo ok || echo fail
  14. echo -n staticcheck...
  15. staticcheck && echo ok || echo fail