chrly/internal/di/config.go

15 lines
194 B
Go

package di
import (
"github.com/defval/di"
"github.com/spf13/viper"
)
var configDiOptions = di.Options(
di.Provide(newConfig),
)
func newConfig() *viper.Viper {
return viper.GetViper()
}