Rename Environment.Conf to Config

This commit is contained in:
Sasha Koshka 2024-12-09 23:36:02 -05:00
parent a2680c40d2
commit d4d882c40e

View File

@ -23,9 +23,9 @@ type Environment struct {
// functionality to the environment. In order to be used, values in this
// slice must implement one or more of the interfaces in provider.go.
Providers []Provider
// Conf specifies configuration data. It is used to configure the
// Config specifies configuration data. It is used to configure the
// environment, as well as plugins that get loaded.
Conf Meta
Config Meta
documents usync.Locker[map[string] *Document]
funcMap template.FuncMap
@ -37,13 +37,13 @@ func (this *Environment) Init (ctx context.Context) error {
this.funcMap = make(template.FuncMap)
for _, provider := range this.Providers {
if provider, ok := provider.(ConfigProcessor); ok {
err := provider.ProcessConfig(this.Conf)
err := provider.ProcessConfig(this.Config)
if err != nil { return err }
}
}
for _, provider := range this.Providers {
if provider, ok := provider.(Configurable); ok {
err := provider.Configure(this.Conf)
err := provider.Configure(this.Config)
if err != nil { return err }
}
if provider, ok := provider.(FuncProvider); ok {