Skip to content

feat(go/zvec): add Go SDK bindings#315

Open
sunhailin-Leo wants to merge 2 commits intoalibaba:mainfrom
sunhailin-Leo:feature/go_sdk
Open

feat(go/zvec): add Go SDK bindings#315
sunhailin-Leo wants to merge 2 commits intoalibaba:mainfrom
sunhailin-Leo:feature/go_sdk

Conversation

@sunhailin-Leo
Copy link
Copy Markdown

This pull request introduces the initial Go SDK for the ZVec vector database, including core bindings, error handling, documentation, and a basic usage example. The changes provide Go users with the ability to interact with ZVec collections, define schemas, insert and query documents, and handle errors in a Go-idiomatic way. The update also includes comprehensive documentation and tests to ensure reliability and ease of use.

Go SDK introduction and documentation:

  • Added a detailed README.md for the Go SDK with prerequisites, installation, usage examples, API reference, and platform support.
  • Added go.mod files for both the SDK and the example to manage dependencies and local development. [1] [2]

Core SDK and error handling:

  • Implemented the core error handling in errors.go, defining error codes, error types, sentinel errors, and conversion utilities for mapping C API errors to Go errors.
  • Added comprehensive unit and benchmark tests for error handling in errors_test.go, ensuring correctness and Go error interface compatibility.

Examples and usage:

  • Added a basic example program in examples/basic/main.go demonstrating collection creation, schema definition, document insertion, querying, and error handling with the Go SDK.

Finish:#61

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 3, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@sunhailin-Leo sunhailin-Leo requested a review from Cuiyus as a code owner April 3, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants