> ## Documentation Index
> Fetch the complete documentation index at: https://helix-digitalocean.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Go SDK

> Getting started with HelixDBs Go SDK.

[helix-go](https://github.com/HelixDB/helix-go) is a Go library for interacting with [helix-db](https://github.com/HelixDB/helix-db) a powerful graph-vector database written in rust. It enables intuitive and type-safe access to graph-based and vector-based queries, making it ideal for building knowledge graphs, search systems, and LLM pipelines.

## Installation

```bash theme={null}
go get github.com/HelixDB/helix-go
```

## Quick Start

<CodeGroup>
  ```go main.go theme={null}
  package main

  import (
      "fmt"
      "log"

      "github.com/HelixDB/helix-go"
  )

  func main() {
      client := helix.NewClient("http://localhost:6969")

      payload := map[string]any{
          "name": "Alice",
          "age":  uint8(25),
      }

      var result map[string]any
      err := client.
          Query("AddUser", helix.WithData(payload)).
          Scan(&result)
      if err != nil {
          log.Fatalf("AddUser query failed: %s", err)
      }

      fmt.Printf("Created user: %#v\n", result)
  }

  ```

  ```js queries.hx theme={null}
  QUERY AddUser(name: String, age: U8) =>
      user <- AddN<User>({
          name: name,
          age: age
      })
      RETURN user

  ```

  ```js schema.hx theme={null}
  N::User {
      name: String,
      age: U8
  }
  ```
</CodeGroup>

## Configuration

### Custom Endpoint

```go theme={null}
client := helix.NewClient("https://my-endpoint.com:8080")
```

Pass your deployment URL to connect to a remote HelixDB instance.
