Search across all documentation pages
10 pages in this section.
Learn how Go organizes source code into packages, compiles them into object files, and links them into a single static binary.
Learn Go fundamentals with 10 runnable examples, covering basic syntax, variable declaration, zero values, and program structure.
Learn to declare variables and constants in Go, understand lexical scope, and avoid common pitfalls like closure capture bugs with iota.
Learn how Go's zero values simplify APIs by providing default states for all types, from numeric zeros to nil for reference types.
Learn Go's numeric types, UTF-8 strings, runes, and byte slices. Understand conversions, avoid common errors, and handle Unicode text correctly.
Learn the core differences between Go arrays, slices, and maps, including their types, underlying structures, and when to use each.
Learn how Go structs group data, embed types for composition without inheritance, and promote fields and methods to the outer type.
Learn how Go pointers enable state mutation across functions and prevent large data copies. Understand the address-of operator and pointer receivers.
Learn core Go best practices for naming, declarations, types, and collections. Improve code quality and maintainability with these fundamental habits.
A single-page roundup of every highlight bullet from the 9 pages in the Go Fundamentals section, grouped by source page so you can scan all 54 takeaways without opening each article individually.