Getting Started
Install a master build, compile Hello World, and run your first test. If you are arriving from 0.13 or 0.14, the last chapter lists what moved and what the replacement looks like.
- This guide follows Zig master, not a tagged release. The compiler named in the footer is the one that compiled every snippet on the site.
- A test needs no framework and no separate file. A
testblock in any compiled file is a test, andzig testruns it. - Code from a 0.13 or 0.14 tutorial probably does not compile today. That is not your mistake, and the last chapter says what moved.
4 chapters.
- InstallationGetting a Zig master build, and why this guide needs one.
- Hello WorldYour first Zig program, and why main now takes an argument.
- Running TestsTests are part of the language.
- Coming from an Older ZigWhat changed between the last stable releases and the master this guide targets.