Hello World

// hello.zig

const io = @import("std").io;

pub fn main(args: [][]u8) -> %void {
    %%io.stdout.printf("Hello, world!\n");
}

Building

When you execute the command below, zig will create an executable called hello from your source, hello.zig

zig build hello.zig --name hello --export exe

results matching ""

    No results matching ""