Initial message to the past

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
2025-12-29 22:53:47 -03:00
commit 2ab278fc5d
9 changed files with 218 additions and 0 deletions

22
config.go Normal file
View File

@@ -0,0 +1,22 @@
package mikuru
import (
"gopkg.in/ini.v1"
)
var Config struct {
Host string
Token string
}
func Parse(file string) error {
cfg, err := ini.Load(file)
if err != nil {
return err
}
Config.Host = cfg.Section("mikuru").Key("host").String()
Config.Token = cfg.Section("mikuru").Key("token").String()
return nil
}