From c545b4071a337828ff0cd2299023054c11f3f979 Mon Sep 17 00:00:00 2001 From: ayntgl Date: Wed, 22 Sep 2021 00:01:09 +0400 Subject: [PATCH] Add doc comment to Config struct --- util/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/config.go b/util/config.go index abdf9a8..960a09d 100644 --- a/util/config.go +++ b/util/config.go @@ -21,6 +21,7 @@ type keybindings struct { MessageInputFieldFocus string } +// Config consists of fields that can be customized by the user using the configuration file. type Config struct { Token string Mouse bool @@ -31,6 +32,7 @@ type Config struct { Keybindings keybindings } +// LoadConfig createsa new configuration file (if does not exist) and returns the default configuration or reads the existing configuration file from the default path. func LoadConfig() *Config { u, err := os.UserHomeDir() if err != nil {