Go
Install
go get github.com/WithAutonomi/ant-sdk/antd-goConnect to the daemon
package main
import (
"context"
"fmt"
antd "github.com/WithAutonomi/ant-sdk/antd-go"
)
func main() {
client := antd.NewClient(antd.DefaultBaseURL)
ctx := context.Background()
health, err := client.Health(ctx)
if err != nil {
panic(err)
}
fmt.Println(health.OK)
discoveredClient, url := antd.NewClientAutoDiscover()
_ = discoveredClient
fmt.Println(url)
}Store and retrieve data
Type mappings
Autonomi type
Go type
Error handling
Full API reference
Last updated