Go SDK
Golang SDK for Spice.ai
Requirements
Installation
go get github.com/spiceai/gospice/v7Usage
import "github.com/spiceai/gospice/v7"spice := gospice.NewSpiceClient()
defer spice.Close()if err := spice.Init(
spice.WithApiKey(ApiKey),
spice.WithSpiceCloudAddress()
); err != nil {
panic(fmt.Errorf("error initializing SpiceClient: %w", err))
}Usage with local Spice runtime
Example
Connection retry
Contributing
Last updated
Was this helpful?