SurrealDB Docs Logo

Enter a search query

Installation

In this section, you will learn how to install the Golang SDK in your project.

Install the SDK

First, install the SDK from pkg.go.dev using the go get command:

go get github.com/surrealdb/surrealdb.go

Import the SDK to your project

After installing, you can then import the SDK into your project.

import ( "fmt" surrealdb "github.com/surrealdb/surrealdb.go" "github.com/surrealdb/surrealdb.go/pkg/models" )

Next Steps

After installing the SDK, check out the quick start guide to build your a simple application with the SDK. You can also learn more about carrying out common tasks with the SDK in the following sections:

On this page

© SurrealDB GitHub Discord Community Cloud Features Releases Install