3.0.0
Documentation: pkg.go.dev
# README
Weaviate go client 
A go native client for weaviate.
Documentation
In order to get the go client v3 issue this command:
$ go get github.com/semi-technologies/weaviate-go-client/[email protected]
where 3.x.x
is the desired go client v3 version, for example v3.0.1
.
Example
Here's a simple code to start up working with go client.
Add dependency to your go.mod
:
require github.com/semi-technologies/weaviate-go-client/v3 v3.0.1
Connect to Weaviate on localhost:8080
and fetch meta information
package main
import (
"context"
"fmt"
clientv3 "github.com/semi-technologies/weaviate-go-client/v3/weaviate"
)
func main() {
config := clientv3.Config{
Scheme: "http",
Host: "localhost:8080",
}
client := clientv3.New(config)
metaGetter := client.Misc().MetaGetter()
meta, err := metaGetter.Do(context.Background())
if err != nil {
fmt.Printf("Error occurred %v", err)
return
}
fmt.Printf("Weaviate meta information\n")
fmt.Printf("hostname: %s version: %s\n", meta.Hostname, meta.Version)
fmt.Printf("enabled modules: %+v\n", meta.Modules)
}
Support
Contributing
Build Status
Branch | Status |
---|---|
Master |