RTG Playground

Explorer
Welcome
user/main.go

RTG Playground

Write, compile, and run Go programs in the browser. RTG is a self-hosting Go compiler targeting native binaries, C source, and WebAssembly.

Quick Start

1
Write your code

Edit files in the explorer panel, or create new files with the + button.

2
Choose a target

Select a compilation target from the toolbar. Use wasi/wasm32 to run in the browser, or toggle Emit IR to inspect textual IR for any target.

3
Compile & Run

Click Compile to build, then Run for WASM targets or Download for native binaries.

Download Compiler

Build the RTG compiler for your platform. The compiler self-compiles in your browser and downloads as a native binary.

Windows
macOS
Linux

Supported Targets

wasi/wasm32
linux/amd64
linux/arm64
linux/386
darwin/arm64
windows/amd64
windows/arm64
windows/386
c/64
c/32
c/16
dos/8086
Output

      
      
    
Ready Entry user/ RTG Compiler