Add man to exported functions/fields

This commit is contained in:
Širhoe Biazhkovič
2021-11-27 00:26:53 +03:00
committed by Lawrence, Rendall
parent 0a5ac35c4d
commit 360ac9d08d
11 changed files with 72 additions and 32 deletions
+2 -3
View File
@@ -70,12 +70,11 @@ func ParseConfigFile(path string) (*ConfigFile, error) {
}
f, err := os.Open(os.ExpandEnv(path))
if err != nil {
return nil, err
} else {
if err == nil {
defer f.Close()
cfgFile := new(ConfigFile)
err = yaml.NewDecoder(f).Decode(cfgFile)
return cfgFile, err
}
return nil, err
}