oc-peer/conf/config.go
2024-07-11 15:40:34 +02:00

20 lines
251 B
Go

package conf
import "sync"
type Config struct {
MongoUrl string
MongoLogin string
MongoPassword string
}
var instance *Config
var once sync.Once
func GetConfig() *Config {
once.Do(func() {
instance = &Config{}
})
return instance
}