Example session below, the version of golang in Debian Jessie doesn't understand the newer syntax. Using a newer version of golang works.
Step 6 : RUN mkdir -p $GOPATH && go get github.com/buger/gor && cd $GOPATH/src/github.com/buger/gor && go build
---> Running in 9be8e9012659
# github.com/araddon/gou
/opt/go/src/github.com/araddon/gou/testutil.go:26: syntax error: unexpected range, expecting {
/opt/go/src/github.com/araddon/gou/testutil.go:34: non-declaration statement outside function body
/opt/go/src/github.com/araddon/gou/testutil.go:35: non-declaration statement outside function body
/opt/go/src/github.com/araddon/gou/testutil.go:36: syntax error: unexpected }
INFO[0177] The command [/bin/sh -c mkdir -p $GOPATH && go get github.com/buger/gor && cd $GOPATH/src/github.com/buger/gor && go build] returned a non-zero code: 2
Example session below, the version of golang in Debian Jessie doesn't understand the newer syntax. Using a newer version of golang works.