chrly/di/config.go

15 lines
184 B
Go
Raw Normal View History

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