Zig is a general-purpose programming language and toolchain for maintaining robust, optimal and reusable software. Please read the official documentation to learn more.

Zig by Example is a hands-on introduction to Zig using annotated example programs.

The examples are written for version 0.16. Check which version you’re using if something isn’t working.

Getting Started

Basic Types

Functions and Errors

Control Flow

Compound Types

Standard Library

Command-line Programs

Async/Await and I/O

Comptime

Zig Tooling

Zig and C

Zig by Example · about · source