From 10442e57ed948725a61354924fc6de78a021b5e8 Mon Sep 17 00:00:00 2001 From: uesugi Date: Fri, 12 Jul 2019 12:54:46 +0900 Subject: [PATCH] test --- common/common.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/common.go b/common/common.go index 01ad50b8..2a7c1b39 100644 --- a/common/common.go +++ b/common/common.go @@ -205,10 +205,10 @@ func RandomString(n int) string { return string(b) } -func GetAbsPath(path string) string { - // Replace home directory - usr, _ := user.Current() - path = strings.Replace(path, "~", usr.HomeDir, 1) +// func GetAbsPath(path string) string { +// // Replace home directory +// usr, _ := user.Current() +// path = strings.Replace(path, "~", usr.HomeDir, 1) - return filepath.Abs(path) -} +// return filepath.Abs(path) +// }