sum7
/
yaja
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
yaja/cmd/config.go

20 lines
300 B
Go
Raw Normal View History

2017-10-01 23:30:48 +02:00
package cmd
import (
log "github.com/sirupsen/logrus"
"dev.sum7.eu/genofire/yaja/model/config"
)
var (
configPath string
)
func loadConfig() *config.Config {
config, err := config.ReadConfigFile(configPath)
if err != nil {
log.Fatal("unable to load config file:", err)
}
return config
}