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.
The code in master branch will be updated to accommodate the changes made in Nebula Graph. To Use the console with a stable release of Nebula Graph, check the branches. Currently the v2.0.0-rc1 branch code is compatible with Nebula Graph v2.0.0-rc1. 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.