GitHub - boringcollege/zig-by-example: Zig by example · GitHub
/" data-turbo-transient="true" />
Skip to content
Search or jump to...
Search code, repositories, users, issues, pull requests...
-->
Search
Clear
Search syntax tips
Provide feedback
--><br>We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
-->
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
boringcollege
zig-by-example
Public
Notifications<br>You must be signed in to change notification settings
Fork
Star
main
BranchesTags
Go to file
CodeOpen more actions menu
Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit
History<br>1 Commit<br>1 Commit
examples
examples
README.md
README.md
View all files
Repository files navigation
Zig by Example
A hands-on introduction to Zig via annotated examples. Zig is a general-purpose, compiled systems language focused on robustness, optimality, and simplicity — no hidden control flow, no hidden allocations, no preprocessor.
Hello, World
Values
Variables
Integers
Floats
Strings
Arrays
Slices
Vectors
Structs
Enums
Unions
Functions
Blocks and Statements
If / Else
Switch
While Loops
For Loops
Defer
Errors
Optionals
Pointers
Multi-Pointers
Slices (Pointers)
Comptime
Generics
Memory Allocation
ArrayList
HashMap
Linked List
Testing
Formatting and Print
File I/O
Processes
JSON
Random Numbers
Sorting
Math
Build System
C Interop
Further Reading
Zig Official Documentation
Zig Standard Library Source
Zig Learn
Zig News
Ziglings — exercises
Zig by Example is inspired by Go by Example by Mark McGranaghan. Examples target Zig 0.14 .
About
Zig by example
Resources
Readme
Uh oh!
There was an error while loading. Please reload this page.
Activity
Custom properties
Stars
stars
Watchers
watching
Forks
forks
Report repository
Releases
No releases published
Packages
Uh oh!
There was an error while loading. Please reload this page.
Contributors
Uh oh!
There was an error while loading. Please reload this page.
You can’t perform that action at this time.