chrly/internal/di/config.go
2024-02-01 07:58:26 +01:00

15 lines
185 B
Go

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