language: go

go:
  - 1.11.x
  - 1.12.x

env:
  - GO111MODULE=on

script:
  - go test -race ./...
  - for i in _examples/*/; do go build $i/*.go || exit 1; done
