From d4d882c40ef7f5ae6f2bf5bfad081b3f93c8b2ae Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 9 Dec 2024 23:36:02 -0500 Subject: [PATCH] Rename Environment.Conf to Config --- environment.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/environment.go b/environment.go index f10aea2..96075d9 100644 --- a/environment.go +++ b/environment.go @@ -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 {