Skip to content

boringcollege/zig-by-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

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.


  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.

About

Zig by example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors