mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 10:42:14 +05:30
15 lines
184 B
Go
15 lines
184 B
Go
|
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()
|
||
|
}
|