configinit

package
v0.10.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package configinit is a public marker package whose sole purpose is to trigger the init() in internal/config that registers the ConfigPath-backed ServiceConfig loader with the root agent package.

The agent module's config package is internal (CONTRACT-003 keeps the surface area minimal), so external callers cannot import it directly. They import this package with a blank import instead:

import _ "github.com/DocumentDrivenDX/fizeau/configinit"

With this import in place, agent.New(opts) can auto-load configuration when opts.ServiceConfig is nil but opts.ConfigPath is set, without requiring the caller to construct a ServiceConfig themselves.

This package exposes no symbols. Importing it is the entire API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL