在Go中轻松安全地从一种数据类型转换为另一种数据类型
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
330 B

  1. language: go
  2. env:
  3. - GO111MODULE=on
  4. sudo: required
  5. go:
  6. - "1.11.x"
  7. - "1.12.x"
  8. - tip
  9. os:
  10. - linux
  11. - osx
  12. - windows
  13. matrix:
  14. allow_failures:
  15. - go: tip
  16. exclude:
  17. - os: windows
  18. go: tip
  19. fast_finish: true
  20. script:
  21. - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then go test -v -race ./...; else make check; fi