deprecated-oc-search/conf/conf.go

18 lines
206 B
Go
Raw Normal View History

2024-02-15 10:48:40 +01:00
package conf
import "sync"
type Config struct {
OcCatalogUrl string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}