milvus/client
congqixia 55b37c3bb6
enhance: Bump milvus & proto version to v2.5.10 (#41328)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-04-15 19:50:32 +08:00
..
bulkwriter enhance: [GoSDK] Add content-type header for bulk import req (#38581) 2024-12-20 10:28:47 +08:00
column fix: [2.5][GoSDK] Set nullable according to fieldSchema for RowBased insert (#40928) (#40962) 2025-03-28 10:30:20 +08:00
common enhance: [2.5][GoSDK] Cherry-pick commits and bump version to 2.5.2 (#41235) 2025-04-11 13:02:26 +08:00
entity enhance: [2.5][GoSDK] Cherry-pick commits and bump version to 2.5.2 (#41235) 2025-04-11 13:02:26 +08:00
index enhance: [2.5][GoSDK] Cherry-pick commits and bump version to 2.5.2 (#41235) 2025-04-11 13:02:26 +08:00
milvusclient enhance: [2.5][GoSDK] Cherry-pick commits and bump version to 2.5.2 (#41235) 2025-04-11 13:02:26 +08:00
row enhance: [2.5][GoSDK] Cherry-pick commits and bump version to 2.5.2 (#41235) 2025-04-11 13:02:26 +08:00
ruleguard enhance: Add lint rules for client pkg and fix problems (#33180) 2024-05-20 20:47:38 +08:00
.golangci.yml enhance: update checker for go version (#33351) 2024-05-24 14:23:40 +08:00
Makefile enhance: Generate milvusclient mockery with latest proto (#37567) 2024-11-11 14:28:30 +08:00
OWNERS enhance: Update latest sdk update to client pkg (#33105) 2024-05-17 10:39:37 +08:00
README.md enhance: [2.5][GoSDK] Add README and examples for milvusclient (#40747) 2025-03-19 18:02:18 +08:00
go.mod enhance: Bump milvus & proto version to v2.5.10 (#41328) 2025-04-15 19:50:32 +08:00
go.sum enhance: Bump milvus & proto version to v2.5.10 (#41328) 2025-04-15 19:50:32 +08:00

README.md

Go MilvusClient

license Go Reference

Go MilvusClient for Milvus. To contribute code to this project, please read our contribution guidelines first.

Getting started

Prerequisites

Go 1.21 or higher

Install Milvus Go SDK

  1. Use go get to install the latest version of the Milvus Go SDK and dependencies:

    go get -u github.com/milvus-io/milvus/client/v2
    
  2. Include the Go MilvusClient in your application:

     import "github.com/milvus-io/milvus/client/v2/milvusclient"
    
     //...other snippet ...
     ctx, cancel := context.WithCancel(context.Background())
     defer cancel()
    
     milvusAddr := "YOUR_MILVUS_ENDPOINT"
    
     cli, err := milvusclient.New(ctx, &milvusclient.ClientConfig{
     	Address: milvusAddr,
     })
     if err != nil {
     	// handle error
     }
    
     // Do your work with milvus client
    

API Documentation

Refer to https://milvus.io/api-reference/go/v2.5.x/About.md for the Go SDK API documentation.

Code format

The Go source code is formatted using gci & gofumpt. Please run make lint-fix before sumbit a PR.