This book serves as a way to learn GLang through actual use. We start from scratch and learn how GLang works, then in the final chapter, we build a personalized terminal command!
In general, this book assumes that you’re reading it in sequence from front to back. Later chapters build on concepts in earlier chapters, and earlier chapters might not delve into details on a particular topic but will revisit the topic in a later chapter.
All chapters in this book are considered "learning chapters", but some chapters may include small challenges at the end to apply the knowledge you have learned.
Chapter 1: Welcome & Setup
Chapter 1.1: What the language is
Chapter 1.2: How to install
Chapter 1.3: First "Hello, World!" program
Chapter 2: Core Building Blocks
Chapter 2.1: Variables & Data Types
Chapter 2.2: Operators
Chapter 2.3: Input & Output
Chapter 3: Flow Control
Chapter 3.1: Conditions (if/otherwise)
Chapter 3.2: Loops (walk/while)
Chapter 3.2.1: Break & Continue
Chapter 4: Functions & Organization
Chapter 4.1: How to write a function
Chapter 4.2: Scope
Chapter 5: Collections
Chapter 5.1: Lists
Chapter 5.2: Strings
Chapter 5.3: Hashmap with std_hashmap
Chapter 6: Error Handling
Chapter 6.1: Understanding errors
Chapter 6.2: Bypassing errors with unsafe/safe
Chapter 7: Modules & Bigger Projects
Chapter 7.1: Importing other GLang files with fetch
Chapter 7.2: Organizing logic
Chapter 8: Terminal Command (End Project)
Chapter 8.1:
Chapter 1 explains the basics of the language, how to install, and how to write a "Hello, world!" program.
Chapter 2 extends on the "Hello, world!" program by creating the Print Bio project.
Chapter 3 explains functions and touches a bit on built in functions.
Chapter 4 extends on functions with A Very Functional Program project.
Chapter 5 explains looping and iteration.
Chapter 6 extends on loops with the EchoMe project.
Chapter 7 explains the list type and operations.
Chapter 8 extends on the list type with the Iterate And Display project.
Chapter 9 finally talks about the previously mentioned if-statements.
Chapter 10 builds a full-fledged, terminal based command with various tools.