package game import ( "github.com/spf13/viper" ) func LoadConfig(path string) bool { viper.SetConfigName("Ultralight.yaml") viper.SetConfigType("yaml") viper.AddConfigPath("assets") err := viper.ReadInConfig() if err != nil { panic(err) } else { return true } }