From c8ef25b018c2c3f49f4eebfa89e9b12a95232290 Mon Sep 17 00:00:00 2001 From: Sharun <715417+sharunkumar@users.noreply.github.com> Date: Sat, 11 Jun 2022 19:42:50 +0530 Subject: [PATCH] use filepath to join the path to the csv file this ensures `\` on the path on windows --- gauth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gauth.go b/gauth.go index 8932ab1..d55981e 100644 --- a/gauth.go +++ b/gauth.go @@ -5,7 +5,7 @@ import ( "log" "os" "os/user" - "path" + "path/filepath" "strings" "syscall" "text/tabwriter" @@ -21,7 +21,7 @@ func main() { if err != nil { log.Fatal(err) } - cfgPath = path.Join(user.HomeDir, ".config/gauth.csv") + cfgPath = filepath.Join(user.HomeDir, ".config", "gauth.csv") } cfgContent, err := gauth.LoadConfigFile(cfgPath, getPassword)