chrly/internal/di/config.go

15 lines
194 B
Go
Raw Normal View History

2020-04-16 19:42:38 +03:00
package di
import (
2023-12-13 17:29:12 +01:00
"github.com/defval/di"
2020-04-16 19:42:38 +03:00
"github.com/spf13/viper"
)
var configDiOptions = di.Options(
2020-04-16 19:42:38 +03:00
di.Provide(newConfig),
)
func newConfig() *viper.Viper {
return viper.GetViper()
}