language: go
go:
  - 1.x
  - tip
os:
  - linux
before_install:
  - go get github.com/golang/lint/golint
script:
  - go vet ./...
  - export GOFMT=$(gofmt -l .)
  - echo "$GOFMT"
  - $(exit $(echo -n "$GOFMT" | wc -l))
  - export GOLINT=$(golint ./... | grep --invert-match -P "(_string.go:)")
  - echo "$GOLINT"
  - $(exit $(echo -n "$GOLINT" | wc -l))
  - go test -v ./...
language: go
go:
  - 1.x
  - tip
os:
  - linux
before_install:
  - go get golang.org/x/lint/golint
script:
  - go vet ./...
  - export GOFMT=$(gofmt -l .)
  - echo "$GOFMT"
  - $(exit $(echo -n "$GOFMT" | wc -l))
  - export GOLINT=$(golint ./... | grep --invert-match -P "(_string.go:)")
  - echo "$GOLINT"
  - $(exit $(echo -n "$GOLINT" | wc -l))
  - go test -v ./...

Use canonical name for golint
Use canonical name for golint

This will fix travis for tip builds.