aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/google/gopacket/.travis.gofmt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/gopacket/.travis.gofmt.sh')
-rwxr-xr-xvendor/github.com/google/gopacket/.travis.gofmt.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/google/gopacket/.travis.gofmt.sh b/vendor/github.com/google/gopacket/.travis.gofmt.sh
new file mode 100755
index 0000000..e341a1c
--- /dev/null
+++ b/vendor/github.com/google/gopacket/.travis.gofmt.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cd "$(dirname $0)"
+if [ -n "$(go fmt ./...)" ]; then
+ echo "Go code is not formatted, run 'go fmt github.com/google/stenographer/...'" >&2
+ exit 1
+fi