streamengine-core/config/config.go
NerdyWoffy 0d2e169bef refactor(config): rename conf to config
this allows go to figure out where config package goes
2024-07-11 10:20:09 +07:00

16 lines
No EOL
255 B
Go

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()
}