Milvus 专用 Go SDK(已过时)
[![Mergify Status][mergify-status]][mergify] [mergify]: https://mergify.io [mergify-status]: https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/milvus-io/milvus-sdk-go&style=plastic
Go SDK for Milvus. To contribute code to this project, please read our contribution guidelines first.
| Milvus version | Recommended Go SDK version |
|---|---|
| 2.4.x | 2.4.0 |
| 2.3.x | 2.3.1 |
| 2.2.x | 2.2.8 |
| 2.1.0 | 2.1.0 |
| 2.0.0 | 2.0.0 |
| 1.1.x | 1.1.0 |
| 1.0.x | 1.0.0 |
Note: Major versions is NOT compatible between Milvus and SDK
Go 1.17 or higher
Use go get to install the latest version of the Milvus Go SDK and dependencies:
go get -u github.com/milvus-io/milvus-sdk-go/v2Include the Milvus Go SDK in your application:
import "github.com/milvus-io/milvus-sdk-go/v2/client"
//...other snippet ...
client, err := client.NewClient(context.Background(), client.Config{
Address: "localhost:19530",
})
if err != nil {
// handle error
}
defer client.Close()
client.HasCollection(context.Background(), "YOUR_COLLECTION_NAME")Refer to https://milvus.io/api-reference/go/v2.2.x/About.md for the Go SDK API documentation.
See examples about how to use this package to communicate with Milvus
The Go source code is formatted using gofmt and golint.
暂无开放 Issues,或尚未同步最近议题。