Changeset 28 in code for trunk/cmd


Ignore:
Timestamp:
Jan 14, 2024, 9:20:04 PM (17 months ago)
Author:
yakumo.izuru
Message:

Put config values under simplytranslate section

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmd/suwako/main.go

    r26 r28  
    3333func errCheck(err error) {
    3434        if err != nil {
    35                 log.Fatal("Something happened :(", err)
     35                log.Println("Something happened :(")
     36                log.Fatal(err)
    3637        }
    3738}
     
    4243                return err
    4344        }
    44         conf.engine = cfg.Section("").Key("engine").String()
    45         conf.instance = cfg.Section("").Key("instance").String()
     45        conf.engine = cfg.Section("simplytranslate").Key("engine").String()
     46        conf.instance = cfg.Section("simplytranslate").Key("instance").String()
    4647
    4748        return nil
Note: See TracChangeset for help on using the changeset viewer.