dockerclient
dockerclient copied to clipboard
Error when installing from go get github.com/samalba/dockerclient
go get github.com/samalba/dockerclient
Gives this error
# github.com/samalba/dockerclient
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:258: syntax error: unexpected range, expecting {
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:258: missing statement after label
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:261: syntax error: unexpected case, expecting semicolon or newline or }
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:267: syntax error: argument to go/defer must be function call
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:270: syntax error: unexpected }
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:272: non-declaration statement outside function body
/root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:273: syntax error: unexpected }
root@webserver:/etc/docker# /root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:258: syntax error: unexpected range, expecting {
bash: /root/gopath/src/github.com/samalba/dockerclient/dockerclient.go:258:: No such file or directory
Using go version go1.2.1 linux/amd64
The same for me,
kepler@nebula ~$ go get -u github.com/docker/swarm
# github.com/samalba/dockerclient
go/src/github.com/samalba/dockerclient/dockerclient.go:258: syntax error: unexpected range, expecting {
go/src/github.com/samalba/dockerclient/dockerclient.go:258: missing statement after label
go/src/github.com/samalba/dockerclient/dockerclient.go:261: syntax error: unexpected case, expecting semicolon or newline or }
go/src/github.com/samalba/dockerclient/dockerclient.go:267: syntax error: argument to go/defer must be function call
go/src/github.com/samalba/dockerclient/dockerclient.go:270: syntax error: unexpected }
go/src/github.com/samalba/dockerclient/dockerclient.go:272: non-declaration statement outside function body
go/src/github.com/samalba/dockerclient/dockerclient.go:273: syntax error: unexpected }
go version go1.3.3 linux/amd64 Linux nebula 3.19.0-26-generic #28-Ubuntu SMP Tue Aug 11 14:16:32 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I guess dockerclient requires go1.4 now.