# README
Modules
This is modules, a Go library for walking a directory tree and performing operations on any Go modules found.
# Functions
Each calls f for each Go module in dir and its subdirectories.
EachGomod calls f for each Go module in dir and its subdirectories.
LoadEach calls f once for each Go module in dir and its subdirectories, passing it the directory containing the go.mod file (which will have dir as a prefix) and a slice of [packages.Package] values loaded from that directory using the [packages.Load] function.
LoadEachGomod combines LoadEach and EachGomod.
# Constants
DefaultLoadMode is the default value for the Mode field of the [packages.Config] used by [Walker.LoadEach] and [Walker.LoadEachGomod].
# Variables
DefaultLoadConfig is the default value for the [Walker.LoadConfig] field used by [Walker.LoadEach] and [Walker.LoadEachGomod].
# Structs
PackageLoadError is an error type that wraps an error that occurred while loading a package.
Walker is a controller for various methods that walk a directory tree of Go modules.