From 7c7ed7569a4cd7165f9bc8c88f44601c10ee7230 Mon Sep 17 00:00:00 2001 From: dotneko <4761762+dotneko@users.noreply.github.com> Date: Wed, 11 Jan 2023 01:57:39 +0000 Subject: [PATCH] Fix unparsed config on init --- config/config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/config.go b/config/config.go index 490c019..3660220 100644 --- a/config/config.go +++ b/config/config.go @@ -49,6 +49,13 @@ var ( Remainder string ) +func init() { + err := ParseConfig("..") + if err != nil { + fmt.Println(err) + } +} + func ParseConfig(pathstr string) error { var cfg Config