### Install Nebula Go Client Source: https://github.com/vesoft-inc/nebula-go/blob/master/README.md Instructions on how to install or update the Nebula Go client using the go get command. You can specify a version tag or use 'master' for the latest changes. ```shell $ go get -u -v github.com/vesoft-inc/nebula-go/v3@master You can specify the version of Nebula-go by substituting in $ go get -u -v github.com/vesoft-inc/nebula-go@. For example: for v3: $ go get -u -v github.com/vesoft-inc/nebula-go/v3@v3.4.0 for v2: $ go get -u -v github.com/vesoft-inc/nebula-go/v2@v2.6.0 ``` -------------------------------- ### Minimal Nebula Go Client Usage Example Source: https://github.com/vesoft-inc/nebula-go/blob/master/README.md A minimal Go example demonstrating how to connect to NebulaGraph, execute a query, and scan the results into a Go struct. It covers initializing the session pool and defining a struct to map query results. ```go package main import ( nebula "github.com/vesoft-inc/nebula-go/v3" ) type Person struct { Name string `nebula:"name" Age int `nebula:"age" Likeness float64 `nebula:"likeness" } func main() { hostAddress := nebula.HostAddress{Host: "127.0.0.1", Port: 3699} config, err := nebula.NewSessionPoolConf( "user", "password", []nebula.HostAddress{hostAddress}, "space_name", ) sessionPool, err := nebula.NewSessionPool(*config, nebula.DefaultLogger{}) query := `GO FROM 'Bob' OVER like YIELD $^.person.name AS name, $^.person.age AS age, like.likeness AS likeness` resultSet, err := sessionPool.Execute(query) if err != nil { panic(err) } var personList []Person resultSet.Scan(&personList) } ``` -------------------------------- ### Nebula-Go run.sh Script Usage Source: https://github.com/vesoft-inc/nebula-go/blob/master/nebula-docker-compose/secrets/readme.md The run.sh script is used to execute different modes of the Nebula-Go application, including starting the server or client. It requires an argument specifying the mode. ```bash ./run.sh root ./run.sh server ./run.sh client ``` -------------------------------- ### Nebula-Go Project File Structure Source: https://github.com/vesoft-inc/nebula-go/blob/master/nebula-docker-compose/secrets/readme.md This illustrates the expected file and directory structure of the Nebula-Go project after running the script, showing configuration files, certificates, and executables. ```bash .\n├── client.cnf\n├── client.crt\n├── client.csr\n├── client.key\n├── readme.md\n├── root.cnf\n├── root.crt\n├── root.csr\n├── root.key\n├── root.srl\n├── run.sh\n├── server.cnf\n├── server.crt\n├── server.csr\n├── server.key ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.