This commit is contained in:
abs3nt 2024-02-17 22:03:08 -08:00
parent d411deaa02
commit 1375299e7a
Signed by: abs3nt
GPG Key ID: A7BD96A8BAB04C09

View File

@ -1,4 +1,4 @@
package gun package gunner
import ( import (
"os" "os"
@ -13,6 +13,7 @@ import (
func LoadApp(i any, appName string) { func LoadApp(i any, appName string) {
yamlDecoder := yaml.New() yamlDecoder := yaml.New()
dotenvDecoder := aconfigdotenv.New() dotenvDecoder := aconfigdotenv.New()
configDir, err := os.UserConfigDir() configDir, err := os.UserConfigDir()
if err != nil { if err != nil {
homeDir, err := os.UserHomeDir() homeDir, err := os.UserHomeDir()