- 1 Introduction to Go & Environment Setup The 'Why' Before the 'How': Why Go?Setting up the Go Workspace and ModulesYour First Go Program: 'Hello World'Understanding the CLI: go run, go build, and go mod
- 2 Go Fundamentals: Your First Steps into Gopher-land Variables: Your Program's Memory BoxesData Types: Primitives and ClassificationConstants: Unchangeable TruthsBasic Input and Output (The fmt package)
- 3 Control Flow: Directing Your Code Conditional Logic: If and Else StatementsThe Mighty 'switch' StatementLooping in Go: The Versatile 'for' LoopControlling Loops: break and continue
- 4 Core Data Structures: Grouping Data Arrays: Fixed-Size CollectionsSlices: Dynamic and Powerful SequencesMaps: Key-Value AssociationsIterating over Collections using 'range'
- 5 Functions and Pointers: Actions and Memory Defining and Calling FunctionsMultiple Return Values and Named ReturnsUnderstanding Pointers: Memory Addresses ExplainedPass by Value vs. Pass by Reference
- 6 Structs and Methods: Object-Oriented Go Structs: Blueprinting Custom Data TypesAttaching Behaviors: Struct MethodsValue Receivers vs. Pointer ReceiversStruct Embedding: Composition over Inheritance
- 7 Interfaces: Programming by Contract What is an Interface in Go?Implicit Implementation: Duck TypingThe Empty Interface (any) and Type AssertionsBest Practices for Designing Interfaces
- 8 Error Handling: Building Robust Applications The 'error' Interface: Go's Approach to FailuresCreating and Wrapping Custom ErrorsThe 'defer' Keyword: Cleaning Up ResourcesPanic and Recover: Handling the Unexpected
- 9 Project Structure and Modules Go Modules: Managing Dependencies (go.mod)Organizing Code into PackagesExported vs. Unexported Identifiers (Visibility)Third-Party Packages: go get and external code
- 10 Concurrency Basics: Doing Things Simultaneously Concurrency vs. Parallelism in GoGoroutines: Lightweight ThreadsSynchronizing Execution with sync.WaitGroupUnderstanding and Detecting Race Conditions
- 11 Channels: Communicating Between Goroutines Introduction to Channels: Sending and ReceivingUnbuffered vs. Buffered ChannelsClosing Channels and Iterating with 'range'The 'select' Statement: Multiplexing Channels
- 12 Advanced Concurrency and Context Protecting Shared State with sync.MutexThe Context Package: Managing LifecyclesHandling Timeouts and CancellationsPractical Pattern: Implementing Worker Pools
- 13 Standard Library Essentials String Manipulation (strings package)Working with Time and Dates (time package)File I/O: Reading and Writing Files (os and io)Basic Hashing and Cryptography (crypto)
- 14 Data Serialization: JSON and Beyond Struct Tags: Annotating Your DataEncoding Go Structs to JSON (Marshaling)Decoding JSON to Go Structs (Unmarshaling)Streaming JSON with json.Encoder and json.Decoder
- 15 Building Web Servers The net/http Package BasicsCreating RESTful Routes and HandlersReading Request Bodies and Query ParametersWriting and Using Middleware
- 16 Database Access and Management Introduction to database/sql and SQL DriversConnecting and Pinging a Relational DatabaseExecuting CRUD Operations (Query, Exec)Managing Database Transactions Safely
- 17 Testing and Benchmarking Writing Your First Unit Test (testing package)Table-Driven Tests: The Go StandardMocking Dependencies for Effective TestingWriting and Running Performance Benchmarks
- 18 Build, Deploy, and Tooling Compiling Go Apps: Executables and BinariesCross-Compilation for Different OS/ArchitecturesDockerizing a Go ApplicationCode Quality: Formatting, Linting, and go vet