From 2a25eba5e11075b14b43b35249ee7b7a436f807b Mon Sep 17 00:00:00 2001
From: Cornelius Rautenbach <cornel.rautenbach@gmail.com>
Date: Thu, 16 Sep 2021 12:23:21 +0200
Subject: [PATCH] Update module path

---
 errors/README.md             | 10 +++++-----
 errors/error_formats_test.go |  2 +-
 errors/errors_test.go        |  4 ++--
 logger/global.go             |  2 +-
 logger/logger.go             |  2 +-
 logger/logs_test.go          |  4 ++--
 6 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/errors/README.md b/errors/README.md
index 3d5830f..bcdb840 100644
--- a/errors/README.md
+++ b/errors/README.md
@@ -29,7 +29,7 @@ For lots of detail on this, see comments in error_formats_test.go and run that t
 ## Usage
 Get the package into your project:
 ```
-go get github.com/uafrica/go-utils
+go get gitlab.com/uafrica/go-utils
 ```
 
 ## func New()
@@ -63,7 +63,7 @@ if err := db.Select(query); err != nil {
 Replace all other errors package imports with this package:
 ```
 import (
-    "github.com/uafrica/go-utils/errors"
+    "gitlab.com/uafrica/go-utils/errors"
 )
 ```
 
@@ -115,7 +115,7 @@ Call ```err.Description()``` to get a struct that can marshal to JSON for a comp
     {
         "error": "login failed",
         "source": {
-            "package": "github.com/uafrica/go-utils/errors/errors_test",
+            "package": "gitlab.com/uafrica/go-utils/errors/errors_test",
             "file": "errors_test.go",
             "line": 18,
             "function": "TestErrorFormatting"
@@ -123,7 +123,7 @@ Call ```err.Description()``` to get a struct that can marshal to JSON for a comp
         "cause": {
             "error": "failed to find account",
             "source": {
-                "package": "github.com/uafrica/go-utils/errors/errors_test",
+                "package": "gitlab.com/uafrica/go-utils/errors/errors_test",
                 "file": "errors_test.go",
                 "line": 17,
                 "function": "TestErrorFormatting"
@@ -131,7 +131,7 @@ Call ```err.Description()``` to get a struct that can marshal to JSON for a comp
             "cause": {
                 "error": "query failed",
                 "source": {
-                    "package": "github.com/uafrica/go-utils/errors/errors_test",
+                    "package": "gitlab.com/uafrica/go-utils/errors/errors_test",
                     "file": "errors_test.go",
                     "line": 16,
                     "function": "TestErrorFormatting"
diff --git a/errors/error_formats_test.go b/errors/error_formats_test.go
index bd11992..57ac758 100644
--- a/errors/error_formats_test.go
+++ b/errors/error_formats_test.go
@@ -9,7 +9,7 @@ import (
 
 	pkg_errors "github.com/pkg/errors"
 
-	uf_errors "github.com/uafrica/go-utils/errors"
+	uf_errors "gitlab.com/uafrica/go-utils/errors"
 )
 
 //use this struct to define various types of errors to experiment with
diff --git a/errors/errors_test.go b/errors/errors_test.go
index cd039f2..d2ce899 100644
--- a/errors/errors_test.go
+++ b/errors/errors_test.go
@@ -4,7 +4,7 @@ import (
 	"encoding/json"
 	"testing"
 
-	"github.com/uafrica/go-utils/errors"
+	"gitlab.com/uafrica/go-utils/errors"
 )
 
 func TestErrorFormatting(t *testing.T) {
@@ -28,7 +28,7 @@ func TestErrorFormatting(t *testing.T) {
 	t.Logf("%%v: %v", e4)
 
 	//use %+v for complete error with stack:
-	//-> "github.com/uafrica/go-utils/errors_test/TestErrorFormatting():errors_test.go(17): login failed, because github.com/uafrica/go-utils/errors_test/TestErrorFormatting():errors_test.go(16): failed to find account, because github.com/uafrica/go-utils/errors_test/TestErrorFormatting():errors_test.go(15): query failed, because you have problem in your SQL near xxx
+	//-> "gitlab.com/uafrica/go-utils/errors_test/TestErrorFormatting():errors_test.go(17): login failed, because gitlab.com/uafrica/go-utils/errors_test/TestErrorFormatting():errors_test.go(16): failed to find account, because gitlab.com/uafrica/go-utils/errors_test/TestErrorFormatting():errors_test.go(15): query failed, because you have problem in your SQL near xxx
 	t.Logf("%%+v: %+v", e4)
 
 	//you may also JSON marshal the error
diff --git a/logger/global.go b/logger/global.go
index ec746ab..e792d34 100644
--- a/logger/global.go
+++ b/logger/global.go
@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"os"
 
-	"github.com/uafrica/go-utils/errors"
+	"gitlab.com/uafrica/go-utils/errors"
 )
 
 var logger Logger
diff --git a/logger/logger.go b/logger/logger.go
index 0a64191..dde991b 100644
--- a/logger/logger.go
+++ b/logger/logger.go
@@ -7,7 +7,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/uafrica/go-utils/errors"
+	"gitlab.com/uafrica/go-utils/errors"
 )
 
 type ILogger interface {
diff --git a/logger/logs_test.go b/logger/logs_test.go
index f27ff0a..0887d95 100644
--- a/logger/logs_test.go
+++ b/logger/logs_test.go
@@ -4,8 +4,8 @@ import (
 	"os"
 	"testing"
 
-	"github.com/uafrica/go-utils/errors"
-	"github.com/uafrica/go-utils/logger"
+	"gitlab.com/uafrica/go-utils/errors"
+	"gitlab.com/uafrica/go-utils/logger"
 )
 
 func TestLogs(t *testing.T) {
-- 
GitLab