Skip to content

docs: add a native code guide for every platform - #2770

Merged
oneo-me merged 1 commit into
mainfrom
agiox/docs-native-extension
Nov 29, 2026
Merged

oneo-me merged 1 commit into
mainfrom
agiox/docs-native-extension

Conversation

@oneo-me

@oneo-me oneo-me commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a Native code guide to the public docs, in all 14 languages, answering how an app reaches what NSGo's APIs do not cover. It lays out per target how the Go program calls the system, ships a library of its own and shows a view of its own (core.Native): purego and objc on Apple platforms, syscall and COM on Windows, purego and GTK on Linux, a View class under android.classes on Android, syscall/js and the web.host module on the web, and pure Go only on HarmonyOS, watchOS, mini programs and the terminal. It closes with when to embed the app in a native project instead.

A DLNA controller is the worked example: it is pure Go, with the local-network permission on Apple platforms and Android's multicast lock as the platform rules. The page notes that standalone iOS builds cannot add the com.apple.developer.networking.multicast entitlement yet.

Targets

  • Shared code (core, base, ui, tsx, the nsgo tool)
  • macOS
  • iOS
  • tvOS
  • watchOS
  • Android
  • Windows
  • Linux
  • Web
  • Mini programs
  • Docs or website only

Screenshots

None

Verification

  • head: 87dc371f23948ba814f5db3d91ede4fcbd4c51b1
  • base: f59bb7a1663179b46eff96e9126749d25c5cece3
  • commands: cd website && bun run build → 0
  • result: pass
  • not covered: go tool nsgo check and go tool nsgo test (no code changed), the emulator, Windows, Linux and browser jobs

Checklist

  • The title is a Conventional Commit, such as fix(linux): keep the caret after a paste; a squash merge uses it as the commit subject.
  • Docs whose facts change are updated, and a capability users can see has a line in a changelog.d/ fragment, not in CHANGELOG.md.
  • New third-party code, assets and dependencies name their source and license.

🤖 Claude Opus 5.5

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added local-ci-pass The head commit declares that its local checks passed documentation Improvements or additions to documentation size/XL and removed local-ci-pass The head commit declares that its local checks passed labels Nov 29, 2026
@oneo-me
oneo-me enabled auto-merge (rebase) November 29, 2026 14:50
@oneo-me
oneo-me merged commit 3f9b98b into main Nov 29, 2026
42 checks passed
@oneo-me
oneo-me deleted the agiox/docs-native-extension branch November 29, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant