17 lines
275 B
Go
17 lines
275 B
Go
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
|
|
}
|
|
} |