Browse Source

Make travis check format, and test it..

Bruce Marriner 8 years ago
parent
commit
90b83fefeb
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .travis.yml
  2. 1 1
      examples/airhorn/main.go

+ 1 - 0
.travis.yml

@@ -8,6 +8,7 @@ install:
     - go get -v .
     - go get -v github.com/golang/lint/golint
 script:
+    - diff <(gofmt -d .) <("")
     - go vet -x ./...
     - golint -set_exit_status ./...
     - go test -v -race ./...

+ 1 - 1
examples/airhorn/main.go

@@ -1,7 +1,7 @@
 package main
 
 import (
-	"encoding/binary"
+"encoding/binary"
 	"flag"
 	"fmt"
 	"io"