Zig by Example

Zig is a general-purpose programming language and toolchain for maintaining robust, optimal and reusable software.

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

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

Advanced Zig