chrly/internal/di/config.go

15 lines
194 B
Go
Raw Normal View History

2020-04-16 22:12:38 +05:30
package di
import (
2023-12-13 21:59:12 +05:30
"github.com/defval/di"
2020-04-16 22:12:38 +05:30
"github.com/spf13/viper"
)
var configDiOptions = di.Options(
2020-04-16 22:12:38 +05:30
di.Provide(newConfig),
)
func newConfig() *viper.Viper {
return viper.GetViper()
}