From 0fa390c8ee5df046a8ffc7b6b59c6e9ab71f849b Mon Sep 17 00:00:00 2001 From: Danil Ivasenko Date: Sat, 18 Mar 2023 16:50:33 +0300 Subject: [PATCH] change name folder, project file optimization --- api/controllers/label.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/api/controllers/label.go b/api/controllers/label.go index 4e1b18e..3dac69f 100644 --- a/api/controllers/label.go +++ b/api/controllers/label.go @@ -5,27 +5,26 @@ import ( "os/user" "strings" - "github.com/Redume/EveryNasa/api/utils" - "github.com/Redume/EveryNasa/functions" + "github.com/Redume/EveryNasa/utils" "github.com/gofiber/fiber/v2" ) var CreateLabel = func(c *fiber.Ctx) error { u, err := user.Current() if err != nil { - functions.Logger(err.Error()) + utils.Logger(err.Error()) } dir, err := os.Getwd() if err != nil { - functions.Logger(err.Error()) + utils.Logger(err.Error()) } dir = strings.Replace(dir, "\\", "\\\\", -1) + "\\EveryNasa.exe" - err = functions.CreateLnk(dir, strings.Replace(u.HomeDir, "\\", "\\\\", -1)+"\\Desktop\\EveryNasa.lnk") + err = utils.CreateLnk(dir, strings.Replace(u.HomeDir, "\\", "\\\\", -1)+"\\Desktop\\EveryNasa.lnk") if err != nil { - functions.Logger(err.Error()) + utils.Logger(err.Error()) } utils.Respond(c, utils.Message(true, "The shortcut was successfully created"))