Zig playground

const std = @import("std");

pub fn greet(name: []const u8) void {
    std.debug.print("Hello, {s}!\n", .{name});

pub fn main() void {

Zig is a general-purpose programming language and toolchain for maintaining robust, optimal and reusable software. Many people think of Zig as "better C".

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

Zig version:        0.12
sandbox engine:     codapi
sandbox name:       zig
allowed commands:   run, test
in-browser:         ✘

Usage example:

const std = @import("std");

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

<codapi-snippet sandbox="zig" editor="basic">