Introduction
Zig is an open-source programming language designed for robustness, optimality, and clarity.
- Robust - behavior is correct even for edge cases such as out of memory.
- Optimal - write programs the best way they can behave and perform.
- Clear - precisely communicate your intent to the compiler and other programmers. The language imposes a low overhead to reading code.
Often the most efficient way to learn something new is to see examples, so this documentation shows how to use each of Zig's features. It is all on one page so you can search with your browser's search tool.
If you search for something specific in this documentation and do not find it, please file an issue or say something on IRC.
The code samples in this document are compiled and tested as part of the main test suite of Zig. This HTML document depends on no external files, so you can use it offline.