milvus/client
congqixia b8fe8aed53
enhance: [GoSDK] Add param static check for search iterator (#43774)
Related to #37548

This patch add static search option check logic:
- batch size shall be positive
- all negative limit shall be treated as `Unlimited`

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-08-07 13:07:40 +08:00
..
bulkwriter enhance: [GoSDK] Add content-type header for bulk import req (#38581) 2024-12-20 10:28:47 +08:00
column fix: [GoSDK] Slice valid data parsing nullable data (#43243) 2025-07-11 10:32:48 +08:00
common enhance: Bump milvus, proto & client version to 2.6.0-rc.1 (#42725) 2025-06-13 17:54:36 +08:00
entity enhance: add FunctionTypeRerank for Go SDK (#42659) 2025-06-13 17:12:36 +08:00
index enhance: [GoSDK] Add more example for godoc (#41234) 2025-04-11 13:26:26 +08:00
milvusclient enhance: [GoSDK] Add param static check for search iterator (#43774) 2025-08-07 13:07:40 +08:00
row fix: [GoSDK] Loose rowbased insert data check (#41498) 2025-04-25 10:38:38 +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: cleanup lint check exclusions (#40829) 2025-03-21 18:12:14 +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: Upgrade go version to 1.24.4 to fix CVEs (#43019) 2025-07-16 11:28:50 +08:00
go.mod enhance: Bump milvus & proto version to v2.6.0 (#43704) 2025-08-05 15:27:39 +08:00
go.sum enhance: Bump milvus & proto version to v2.6.0 (#43704) 2025-08-05 15:27:39 +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.24.4 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.