From fe1b47a3befab52745554ac23e009cbbf08eacc8 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Sat, 4 Mar 2023 21:28:23 +0300 Subject: [PATCH] Remove module structure from nezabx Nexabx is an application and not Go library, so there is no need to use module structure in module name. --- go.mod | 2 +- main.go | 7 ++++--- runners/command.go | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 7bdcf99..9097bd3 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/alexvanin/nezabx +module nezabx go 1.18 diff --git a/main.go b/main.go index 08b596a..e3dfa62 100644 --- a/main.go +++ b/main.go @@ -7,9 +7,10 @@ import ( "os" "os/signal" - "github.com/alexvanin/nezabx/db" - "github.com/alexvanin/nezabx/notifications/email" - "github.com/alexvanin/nezabx/runners" + "nezabx/db" + "nezabx/notifications/email" + "nezabx/runners" + "github.com/robfig/cron/v3" "go.uber.org/zap" "go.uber.org/zap/zapcore" diff --git a/runners/command.go b/runners/command.go index 26c846b..f96dd30 100644 --- a/runners/command.go +++ b/runners/command.go @@ -10,8 +10,9 @@ import ( "strings" "time" - "github.com/alexvanin/nezabx/db" - "github.com/alexvanin/nezabx/notifications/email" + "nezabx/db" + "nezabx/notifications/email" + "github.com/google/shlex" "github.com/robfig/cron/v3" "go.uber.org/zap"