streamengine-core/config/config.go

16 lines
255 B
Go
Raw Permalink Normal View History

2024-07-11 03:12:19 +00:00
package config
import "github.com/spf13/viper"
func init() {
viper.SetConfigName("config")
viper.AddConfigPath(".")
viper.SetConfigType("yaml")
viper.AutomaticEnv()
viper.ReadInConfig()
}
func GetConfig() *viper.Viper {
return viper.GetViper()
}