aoiasd 9d01606fe8
enhance: update go and lindera version. (#43493)
relate: https://github.com/milvus-io/milvus/issues/43120
pr: https://github.com/milvus-io/milvus/pull/43121
https://github.com/milvus-io/milvus/pull/43019

---------

Signed-off-by: liliu-z <liliu-z@users.noreply.github.com>
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
Co-authored-by: liliu-z <liliu-z@users.noreply.github.com>
2025-07-22 16:30:58 +08:00
..

Go MilvusClient

license Go Reference

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

Getting started

Prerequisites

<<<<<<< HEAD Go 1.21 or higher

Go 1.24.4 or higher

6b7cc28bca... Upgrade go version to 1.24.4 to fix CVEs

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.