chrly/di/config.go

15 lines
185 B
Go
Raw Permalink 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 config = di.Options(
di.Provide(newConfig),
)
func newConfig() *viper.Viper {
return viper.GetViper()
}