milvus/client
congqixia d679195a5a
enhance: Bump milvus & proto version to v2.5.9 (#41144)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-04-07 20:37:35 +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] Support index properties API & bump version (#40434) 2025-03-07 01:46:06 +08:00
entity [GoSDK][2.5] test: Cherry-pick gosdk test commits from master branch (#40778) 2025-03-21 14:30:14 +08:00
index enhance: [2.5][GoSDK] Support JSON Path index (#40754) (#40791) 2025-03-21 10:28:13 +08:00
milvusclient [GoSDK][2.5] test: Cherry-pick gosdk test commits from master branch (#40778) 2025-03-21 14:30:14 +08:00
row fix: [2.5][GoSDK] Set nullable according to fieldSchema for RowBased insert (#40928) (#40962) 2025-03-28 10:30:20 +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.9 (#41144) 2025-04-07 20:37:35 +08:00
go.sum enhance: Bump milvus & proto version to v2.5.9 (#41144) 2025-04-07 20:37:35 +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.