So I’ve install “go1.6.linux-amd64.tar.gz” then launching the command "go get -u “github.com/influxdb/influxdb/client” but so far i get this error :
infping.go:4:5: code in directory /usr/local/go/src/github.com/influxdb/influxdb/client expects import “github.com/influxdata/influxdb/client”
I’ve only quickly taken a look at this and am not a veteran my self (just learning).
(Heads up: the spaces in the paths are only so the forum formats the important bits, please ignore them)
But to me it looks like you go get github.com/influxdb/influxdb/client
which Github redirects to github.com/influxdata/influxdb/client
(don’t ask me why, im not that familiar with github either) but go get happily stores it in
GOPATH/github.com/ influxdb/influxdb/client
which would then be used for import paths (in your infping.go it imports influxdb).
The problem then is that influxdb_test.go and example_test.go in the influxdb package imports influxdata because that’s what it expects since that’s the “real” URL. This import path obviously doesn’t exist (because you imported into influxdb) and the compiler gives you an error.
My suggestion would be to change the path on your machine to
GOPATH/github.com/ influxdata/influxdb/client
and change the import path in your infping.go to
"github.com/influxdata/influxdb/client"
And see if that works. If it does, I probably was right, if not, forget what i said