Files
website/internal/platform/config/config.go
2025-10-23 19:51:28 +01:00

23 lines
258 B
Go

package config
import (
"sync"
"synlotto-website/internal/models"
)
var (
appConfig *models.Config
once sync.Once
)
func Init(config *models.Config) {
once.Do(func() {
appConfig = config
})
}
func Get() *models.Config {
return appConfig
}