IMPORTANT: Code of Nebula go client has been transferred from nebula-clients to this repository(nebula-go), and new releases in the future will be published in this repository. Please update your go.mod and imports correspondingly.
Official Nebula Go client which communicates with the server using fbthrift. Currently the Master branch code is compatible with Nebula v2.0.0 beta. If you are using a older version, please checkout branch v1.0.0.
Please be careful not to modify the files in the nebula directory, these codes were all generated by fbthrift.
$ go get -u -v github.com/vesoft-inc/nebula-go@masterIf you get a message like cannot use path@version syntax in GOPATH mode, see the instructions below for enabling go modules.
Dependency management tools are built into go 1.11+ in the form of go modules.
If you are using go 1.11 or 1.12 and are working with a project located within $GOPATH, you need to do:
export GO111MODULE=onEnsure your project has a go.mod file defined at the root of your project.
If you do not already have one, go mod init will create one for you:
go mod initAnd then try to get dependencies of github.com/vesoft-inc/nebula-go in your go module by simply go get -u -v github.com/vesoft-inc/nebula-go@master.