Skip to content
Snippets Groups Projects

Resolve "Update gitlab references to our self-hosted instance"

4 files
+ 17
17
Compare changes
  • Side-by-side
  • Inline
Files
4
+ 5
5
@@ -29,7 +29,7 @@ For lots of detail on this, see comments in error_formats_test.go and run that t
@@ -29,7 +29,7 @@ For lots of detail on this, see comments in error_formats_test.go and run that t
## Usage
## Usage
Get the package into your project:
Get the package into your project:
```
```
go get gitlab.com/uafrica/go-utils
go get gitlab.bob.co.za/bob-public-utils/bobgroup-go-utils
```
```
## func New()
## func New()
@@ -87,7 +87,7 @@ An error with HTTP code will also print the code in the stack, e.g.:
@@ -87,7 +87,7 @@ An error with HTTP code will also print the code in the stack, e.g.:
Replace all other errors package imports with this package:
Replace all other errors package imports with this package:
```
```
import (
import (
"gitlab.com/uafrica/go-utils/errors"
"gitlab.bob.co.za/bob-public-utils/bobgroup-go-utils/errors"
)
)
```
```
@@ -139,7 +139,7 @@ Call ```err.Description()``` to get a struct that can marshal to JSON for a comp
@@ -139,7 +139,7 @@ Call ```err.Description()``` to get a struct that can marshal to JSON for a comp
{
{
"error": "login failed",
"error": "login failed",
"source": {
"source": {
"package": "gitlab.com/uafrica/go-utils/errors/errors_test",
"package": "gitlab.bob.co.za/bob-public-utils/bobgroup-go-utils/errors/errors_test",
"file": "errors_test.go",
"file": "errors_test.go",
"line": 18,
"line": 18,
"function": "TestErrorFormatting"
"function": "TestErrorFormatting"
@@ -147,7 +147,7 @@ Call ```err.Description()``` to get a struct that can marshal to JSON for a comp
@@ -147,7 +147,7 @@ Call ```err.Description()``` to get a struct that can marshal to JSON for a comp
"cause": {
"cause": {
"error": "failed to find account",
"error": "failed to find account",
"source": {
"source": {
"package": "gitlab.com/uafrica/go-utils/errors/errors_test",
"package": "gitlab.bob.co.za/bob-public-utils/bobgroup-go-utils/errors/errors_test",
"file": "errors_test.go",
"file": "errors_test.go",
"line": 17,
"line": 17,
"function": "TestErrorFormatting"
"function": "TestErrorFormatting"
@@ -155,7 +155,7 @@ Call ```err.Description()``` to get a struct that can marshal to JSON for a comp
@@ -155,7 +155,7 @@ Call ```err.Description()``` to get a struct that can marshal to JSON for a comp
"cause": {
"cause": {
"error": "query failed",
"error": "query failed",
"source": {
"source": {
"package": "gitlab.com/uafrica/go-utils/errors/errors_test",
"package": "gitlab.bob.co.za/bob-public-utils/bobgroup-go-utils/errors/errors_test",
"file": "errors_test.go",
"file": "errors_test.go",
"line": 16,
"line": 16,
"function": "TestErrorFormatting"
"function": "TestErrorFormatting"
Loading