Skip to content

Link to zig.run Snippet Runner

Jason Lauman edited this page Feb 26, 2021 · 1 revision

Base64 encode a complete main.zig file (with pub fn main() function) and append to the URL https://zig.run/snippet/# to create a complete link. The zig.run snippet runner will automatically run the Zig code after the snippet loads.

RUN Hello World

//! Hello World
//!
const std = @import("std");
const print = std.debug.print;

pub fn main() !void {
    print("{}\n", .{"hello world!"});
}

Clone this wiki locally