Search across all documentation pages
10 pages in this section.
Learn how Go organizes code into packages and modules, enabling reproducible builds, version-aware upgrades, and dependency resolution.
Learn Go packages and modules with 10 examples. Create modules, import packages, and understand the standard layout.
Learn Go package naming conventions, including lowercase, concise names and using internal/ directories to restrict imports and enforce module boundaries.
Learn how go.mod declares dependencies, go.sum locks checksums, and Minimal Version Selection ensures reproducible Go builds.
Learn about Go import cycles, blank imports for side effects, and dot imports. Understand how to break cycles and when to use blank imports.
Learn to use go work to develop multi-module Go repositories. Configure a go.work file to manage local source for multiple modules.
Learn the standard Go project layout for services and libraries, including cmd/, internal/, and pkg/ directories, to organize your code effectively.
Learn best practices for Go packages, modules, and project layout. Maintain small import graphs, predictable releases, and maintainable monorepos.
A single-page roundup of every highlight bullet from the 9 pages in the Packages & Modules section, grouped by source page so you can scan all 54 takeaways without opening each article individually.