Put config values under simplytranslate section

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/suwako/trunk@28 0b558ee1-521d-8b46-a41b-40029c97c055
This commit is contained in:
yakumo.izuru 2024-01-14 21:20:04 +00:00
parent 040b11054c
commit 36a8380932

View File

@ -32,7 +32,8 @@ type Translate struct {
func errCheck(err error) { func errCheck(err error) {
if err != nil { if err != nil {
log.Fatal("Something happened :(", err) log.Println("Something happened :(")
log.Fatal(err)
} }
} }
@ -41,8 +42,8 @@ func iniLoad(file string) error {
if err != nil { if err != nil {
return err return err
} }
conf.engine = cfg.Section("").Key("engine").String() conf.engine = cfg.Section("simplytranslate").Key("engine").String()
conf.instance = cfg.Section("").Key("instance").String() conf.instance = cfg.Section("simplytranslate").Key("instance").String()
return nil return nil
} }