cheatsheets/zig/Zig Programming Language.md

254 B

Hello World example

const std = @import("std");

pub fn main() void {
    std.debug.print("Hello World!", .{});
}

Define array

.{69, 420}

Importing a module

const [variable name of choosing] = @import("module name");