Skip to content

drproberts/zig-by-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zig by Example

License: CC BY 4.0

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.

Written by Dariush Abbasi for Boring College


  1. Hello, World
  2. Values
  3. Variables
  4. Integers
  5. Floats
  6. Strings
  7. Arrays
  8. Slices
  9. Vectors
  10. Structs
  11. Enums
  12. Unions
  13. Functions
  14. Blocks and Statements
  15. If / Else
  16. Switch
  17. While Loops
  18. For Loops
  19. Defer
  20. Errors
  21. Optionals
  22. Pointers
  23. Multi-Pointers
  24. Slices (Pointers)
  25. Comptime
  26. Generics
  27. Memory Allocation
  28. ArrayList
  29. HashMap
  30. Linked List
  31. Testing
  32. Formatting and Print
  33. File I/O
  34. Processes
  35. JSON
  36. Random Numbers
  37. Sorting
  38. Math
  39. Build System
  40. C Interop

Further Reading


Zig by Example is inspired by Go by Example by Mark McGranaghan. Examples target Zig 0.14.

Contributions welcome — see CONTRIBUTING.md.

About

Zig by example

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors