replace WaitGroup with errgroup to allow error handling and propagation

The program now exits with a non-zero code when errors are encountered
while reading and/or writing files.

This now also introduces Go Modules for dependency management
This commit is contained in:
Mithun Ayachit
2020-02-12 06:05:24 -06:00
parent 9fa18aaf59
commit c46413539e
5 changed files with 74 additions and 11 deletions

View File

@@ -1,13 +1,13 @@
dist: xenial
dist: bionic
git:
depth: 3
language: go
go:
- "1.x"
- "1.10.x"
- 1.13.x
before_script:
- go get golang.org/x/lint/golint
script:
- go mod tidy
- gofmt -d -e -l -s .
- golint -set_exit_status ./...
- go test -v ./...