Versions in this module Expand all Collapse all v0 v0.153.0 Oct 12, 2026 Changes in this version + const WorkspaceDisabled + var DefaultModuleConfig = Config + var ErrNotExist = errors.New("module does not exist") + func ApplyProjectConfigDefaults(mod Module, cfgs ...config.AllProvider) error + type Client struct + GoModulesFilename string + func NewClient(cfg ClientConfig) *Client + func (c *Client) Clean(pattern string) error + func (c *Client) Get(args ...string) error + func (c *Client) Graph(w io.Writer) error + func (c *Client) Init(path string) error + func (c *Client) Tidy() error + func (c *Client) Vendor() error + func (c *Client) Verify(clean bool) error + func (h *Client) Collect() (ModulesConfig, error) + type ClientConfig struct + CacheDir string + Environment string + Exec *hexec.Exec + Fs afero.Fs + HookBeforeFinalize func(m *ModulesConfig) error + IgnoreModuleDoesNotExist bool + IgnoreVendor glob.Glob + Logger loggers.Logger + ModuleConfig Config + PublishDir string + ThemesDir string + WorkingDir string + type Config struct + Auth string + HugoVersion HugoVersion + Imports []Import + Mounts []Mount + NoProxy string + NoVendor string + Params map[string]any + Private string + Proxy string + Replacements []string + VendorClosest bool + Workspace string + func DecodeConfig(cfg config.Provider) (Config, error) + type HugoVersion struct + Extended bool + Max hugo.VersionString + Min hugo.VersionString + func (v HugoVersion) IsValid() bool + func (v HugoVersion) String() string + type Import struct + Disable bool + IgnoreConfig bool + IgnoreImports bool + Mounts []Mount + NoMounts bool + NoVendor bool + Path string + Version string + type Module interface + Cfg func() config.Provider + Config func() Config + ConfigFilenames func() []string + Dir func() string + IsGoMod func() bool + Mounts func() []Mount + Owner func() Module + Path func() string + PathVersionQuery func(escapeQuery bool) string + Replace func() Module + Sum func() string + Time func() time.Time + Vendor func() bool + Version func() string + VersionQuery func() string + Watch func() bool + type Modules []Module + type ModulesConfig struct + AllModules Modules + GoModulesFilename string + GoWorkspaceFilename string + func (m ModulesConfig) HasConfigFile() bool + type Mount struct + DisableWatch bool + ExcludeFiles any + IncludeFiles any + Lang string + Source string + Target string + func (m Mount) Component() string + func (m Mount) ComponentAndName() (string, string)