[PR #84] [MERGED] feat: Add Go bindings package with centralized C header #278

Closed
opened 2026-03-02 23:45:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/84
Author: @dnakov
Created: 8/26/2025
Status: Merged
Merged: 8/28/2025
Merged by: @kommander

Base: mainHead: main


📝 Commits (2)

  • df6ca85 feat: add Go bindings package with centralized C header
  • 7ac7adc feat: update Go bindings for latest Zig API changes

📊 Changes

15 files changed (+3155 additions, -0 deletions)

View changed files

📝 README.md (+15 -0)
📝 package.json (+2 -0)
packages/core/src/zig/opentui.h (+120 -0)
packages/go/README.md (+230 -0)
packages/go/buffer.go (+327 -0)
packages/go/examples/basic/main.go (+156 -0)
packages/go/examples/console/README.md (+104 -0)
packages/go/examples/console/input.go (+209 -0)
packages/go/examples/console/main.go (+561 -0)
packages/go/go.mod (+3 -0)
packages/go/opentui.go (+159 -0)
packages/go/opentui_test.go (+356 -0)
packages/go/renderer.go (+336 -0)
packages/go/textbuffer.go (+362 -0)
packages/go/types.go (+215 -0)

📄 Description

Summary

  • Add complete Go bindings for OpenTUI with CGO integration
  • Move opentui.h to centralized location for all language bindings
  • Include working examples (basic and interactive console demo)

Test plan

  • Go package builds successfully (go build ./...)
  • All tests pass (go test -v)
  • Basic example runs and displays output
  • Console demo runs with interactive features
  • Integration with main repository build system

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/84 **Author:** [@dnakov](https://github.com/dnakov) **Created:** 8/26/2025 **Status:** ✅ Merged **Merged:** 8/28/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`df6ca85`](https://github.com/anomalyco/opentui/commit/df6ca8509b7978b474194284697a263153e337d4) feat: add Go bindings package with centralized C header - [`7ac7adc`](https://github.com/anomalyco/opentui/commit/7ac7adce1c23f682649f81bde39fbc10ccda72d3) feat: update Go bindings for latest Zig API changes ### 📊 Changes **15 files changed** (+3155 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+15 -0) 📝 `package.json` (+2 -0) ➕ `packages/core/src/zig/opentui.h` (+120 -0) ➕ `packages/go/README.md` (+230 -0) ➕ `packages/go/buffer.go` (+327 -0) ➕ `packages/go/examples/basic/main.go` (+156 -0) ➕ `packages/go/examples/console/README.md` (+104 -0) ➕ `packages/go/examples/console/input.go` (+209 -0) ➕ `packages/go/examples/console/main.go` (+561 -0) ➕ `packages/go/go.mod` (+3 -0) ➕ `packages/go/opentui.go` (+159 -0) ➕ `packages/go/opentui_test.go` (+356 -0) ➕ `packages/go/renderer.go` (+336 -0) ➕ `packages/go/textbuffer.go` (+362 -0) ➕ `packages/go/types.go` (+215 -0) </details> ### 📄 Description ## Summary - Add complete Go bindings for OpenTUI with CGO integration - Move opentui.h to centralized location for all language bindings - Include working examples (basic and interactive console demo) ## Test plan - [x] Go package builds successfully (`go build ./...`) - [x] All tests pass (`go test -v`) - [x] Basic example runs and displays output - [x] Console demo runs with interactive features - [x] Integration with main repository build system --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:45:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#278
No description provided.