Table of contents
Introduction
1. Getting started
- Installing,downloading Zig
- Printing to the screen
- Structure of a program
- Variables and Constants
- Comments
- Basic Data Types
- Tuples and text
- Character Representation
- Chapter summary
- If
- If / Else
- If / Else if / Else
- Nested conditions
- If / else that return values
- Labeled blocks
- Switch
- Chapter Summary
- Where are the bytes
- Memory timing
- Pointers
- String types
- Keyboard input
- Generating strings
- Generating random keys
- Chapter summary
- Parameters and arguments
- Returning multiple values
- Destructuring
- Optional values
- Inline functions
- Libraries
- Dynamic lists - ArrayList
- Functions that return errors
- Chapter summary
- Introspection Builtins
- anytype y T: type
- Anonymous and Encapsulated Functions
- Generic Recursion
- Checking for Fields with @hasField
- Generic Structs
- Chapter Summary
- Compiling programs in Zig
- Creating a project: zig init
- Example of using a library: argonaut
- Chapter summary