Repository navigation
docs: add a native code guide for every platform - #2770
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oneo-me
enabled auto-merge (rebase)
November 29, 2026 14:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 andobjcon Apple platforms,syscalland COM on Windows, purego and GTK on Linux, aViewclass underandroid.classeson Android,syscall/jsand theweb.hostmodule 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.multicastentitlement yet.Targets
core,base,ui,tsx, thensgotool)Screenshots
None
Verification
87dc371f23948ba814f5db3d91ede4fcbd4c51b1f59bb7a1663179b46eff96e9126749d25c5cece3cd website && bun run build → 0passgo tool nsgo check and go tool nsgo test (no code changed), the emulator, Windows, Linux and browser jobsChecklist
fix(linux): keep the caret after a paste; a squash merge uses it as the commit subject.changelog.d/fragment, not inCHANGELOG.md.🤖 Claude Opus 5.5
🤖 Generated with Claude Code