Skip to content

Tutorials ​

From installation to packaging a script into a standalone executable takes about ten minutes. Every example has been verified by actually running it.

All three entry points install the same binary: npm install (with prebuilt binaries for 5 platforms bundled, no Go environment needed), the gox create scaffold, or building from source with go build. There are two command names, gox and goxjs (aliases of each other); a source build produces Gox.

Quick Navigation

Just want to get it running → Installation and Creating a Project; want to build UIs → GUI Desktop Apps; want to embed it in a Go program or learn how the runtime works → API Reference.

Contents ​

#SectionWhat's covered
1Installation and Creating a Projectnpm install, the gox create scaffold, building from source
2REPL and CLIInteractive environment, command cheat sheet, script echo semantics
3Language Basics and BoundariesES6+ subset, what's not supported (import as / Date)
4ES Modulesimport/export, dynamic import(), no CommonJS
5Async and the Event Loopasync/await, timer family, exit semantics
6Built-in Objects at a GlanceGlobal objects like Object/Array/Map/Set/Promise/Temporal
7Files and Systemfs / path / process, both sync and async
8HTTP Requests and ServersGlobal fetch, serving with http.createServer
9Reactive ProgrammingGetX-style obs and SolidJS-style createSignal
10GUI Desktop AppsJSX + gx/gfx + gx/solid, built-in elements, routing, built-in module cheat sheet
11Packaging Standalone ExecutablesThe jsbuild packager, cross-compilation, single-file distribution
12FAQRelationship with Node, macOS support, debugging tips

Next stop: Component Reference — full props and examples for all 44 built-in GUI elements.