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:
parent
040b11054c
commit
36a8380932
@ -32,7 +32,8 @@ type Translate struct {
|
||||
|
||||
func errCheck(err error) {
|
||||
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 {
|
||||
return err
|
||||
}
|
||||
conf.engine = cfg.Section("").Key("engine").String()
|
||||
conf.instance = cfg.Section("").Key("instance").String()
|
||||
conf.engine = cfg.Section("simplytranslate").Key("engine").String()
|
||||
conf.instance = cfg.Section("simplytranslate").Key("instance").String()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user