Zig programming tutorials
Start with a small program, then use it to solve an everyday problem.
Zig core curriculum
Getting started
Decisions and loops
Functions and data
Files and projects
Print a value
const std = @import("std");
fn show(value: i64) !void {
var buffer: [64]u8 = undefined;
var writer = std.fs.File.stdout().writer(&buffer);
try writer.interface.print("{d}\n", .{value});
try writer.interface.flush();
}
pub fn main() !void {
try show(3);
}
3