Files

18 lines
252 B
Go
Raw Permalink Normal View History

package config
type Provider interface {
Current() *Config
}
type staticProvider struct {
cfg *Config
}
func NewStaticProvider(cfg *Config) Provider {
return staticProvider{cfg: cfg}
}
func (p staticProvider) Current() *Config {
return p.cfg
}