Targets · Go · Example
The whole language in one short program — a module with a record, a tagged union, a function with per-platform native bodies, and a function that wires up state, a write-back and a return — and the complete Go it renders to. It is the same program shown on the language page .
How a Program becomes Go, in parts. Start with the introduction, then follow each part into the rendered output and the runtime it links against.
Each keyword has its own page under keywords ; here they are all together.
(The function's swift row is replaced with a go one here, since Go needs its own NATIVE body.)
The module is a package; the record and union are structs named by the underscore join; the functions are methods on a zero-field “static” struct; state uses generics; the function's go body is spliced in; and the trailing = becomes a return .
Indentation becomes nested closures — the REVERSE body is a func() { … } . Dotted names are joined with an underscore, keeping the final access a real dot ( Maths_Integer.ToString ) — see naming considerations . The per-keyword mapping is on keywords .