Targets · Go · Native modules

Native modules

The hand-written, per-platform code behind NATIVE functions.

Contents

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.

Hand-written Go behind NATIVE

A NATIVE function needs a go NATIVE body before it can be built for Go; that hand-written body is dropped in where the function is called, wrapped so its inputs arrive as plain Go values. As on JavaScript, the drivers are native code too, and the runtime (Reactive, Context) is itself a native module the rest builds on.