language: go

go:
  - 1.10.x
  - 1.11.x

env:
  - GO111MODULE=on

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