Travis config: Add Go 1.10.x, revert 1.4.x to 1.4

1.4.x is missing go vet
This commit is contained in:
Gary Burd 2018-02-18 22:56:50 -08:00
parent 4f2cfb1c31
commit 206154d174
2 changed files with 3 additions and 1 deletions

View File

@ -3,12 +3,13 @@ sudo: false
matrix:
include:
- go: 1.4.x
- go: 1.4
- go: 1.5.x
- go: 1.6.x
- go: 1.7.x
- go: 1.8.x
- go: 1.9.x
- go: 1.10.x
- go: tip
allow_failures:
- go: tip

View File

@ -20,6 +20,7 @@ var addr = flag.String("addr", "localhost:8080", "http service address")
var upgrader = websocket.Upgrader{} // use default options
func echo(w http.ResponseWriter, r *http.Request) {
log.Println(r.Header)
c, err := upgrader.Upgrade(w, r, nil)
if err != nil {
log.Print("upgrade:", err)