Documentation ¶
Overview ¶
autoconfig provides a way to instantiate and configure objects like logger, project, session, and others. It takes into account runme.yaml, flags, and environment variables.
For example, to instantiate a project.Project, you can use:
autoconfig.Invoke(func(p *project.Project) error { ... })
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Invoke ¶
func Invoke(function interface{}, opts ...dig.InvokeOption) error
Invoke is used to invoke the function with the given dependencies. The package will automatically figure out how to instantiate them using the available configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.