Skip to content

Commit ca6afcd

Browse files
committed
chore: update pkg
1 parent da2567e commit ca6afcd

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# errors [![Go Reference](https://img.shields.io/badge/go-pkg-00ADD8)](https://pkg.go.dev/github.com/ogen-go/errors#section-documentation) [![codecov](https://img.shields.io/codecov/c/github/ogen-go/errors?label=cover)](https://codecov.io/gh/ogen-go/errors)
1+
# errors [![Go Reference](https://img.shields.io/badge/go-pkg-00ADD8)](https://pkg.go.dev/github.com/go-faster/errors#section-documentation) [![codecov](https://img.shields.io/codecov/c/github/go-faster/errors?label=cover)](https://codecov.io/gh/go-faster/errors)
22

3-
Fork of [xerrors](https://pkg.go.dev/golang.org/x/xerrors) with explicit [Wrap](https://pkg.go.dev/github.com/ogen-go/errors#Wrap) instead of `%w` format.
3+
Fork of [xerrors](https://pkg.go.dev/golang.org/x/xerrors) with explicit [Wrap](https://pkg.go.dev/github.com/go-faster/errors#Wrap) instead of `%w` format.
44

55
> Clear is better than clever.
66
77
```
8-
go get github.com/ogen-go/errors
8+
go get github.com/go-faster/errors
99
```
1010

1111
```go
@@ -27,7 +27,7 @@ Call `errors.DisableTrace` or use build tag `noerrtrace`.
2727

2828
## Migration
2929
```
30-
go get github.com/ogen-go/errors/cmd/gowrapper@latest
30+
go get github.com/go-faster/errors/cmd/gowrapper@latest
3131
gowrapper ./...
3232
```
3333

cmd/gowrapper/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"path/filepath"
1515
"strings"
1616

17-
"github.com/ogen-go/errors"
17+
"github.com/go-faster/errors"
1818
)
1919

2020
var exitCode = 0
@@ -41,7 +41,7 @@ func process(src []byte) []byte {
4141
s := bufio.NewScanner(bytes.NewReader(src))
4242
var inImports bool
4343

44-
const target = `"github.com/ogen-go/errors"`
44+
const target = `"github.com/go-faster/errors"`
4545
replacer := strings.NewReplacer(
4646
`"github.com/pkg/errors"`, target,
4747
`"golang.org/x/xerrors"`, target,

errors_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"regexp"
1010
"testing"
1111

12-
"github.com/ogen-go/errors"
12+
"github.com/go-faster/errors"
1313
)
1414

1515
func TestNewEqual(t *testing.T) {

example_As_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"os"
1010

11-
"github.com/ogen-go/errors"
11+
"github.com/go-faster/errors"
1212
)
1313

1414
func ExampleAs() {

example_FormatError_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package errors_test
77
import (
88
"fmt"
99

10-
"github.com/ogen-go/errors"
10+
"github.com/go-faster/errors"
1111
)
1212

1313
type MyError2 struct {

format_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"regexp"
1212
"testing"
1313

14-
"github.com/ogen-go/errors"
14+
"github.com/go-faster/errors"
1515
)
1616

1717
func TestErrorFormatter(t *testing.T) {
@@ -88,7 +88,7 @@ func TestErrorFormatter(t *testing.T) {
8888
err: framed,
8989
fmt: "%+v",
9090
want: "something:" +
91-
"\n github.com/ogen-go/errors_test.TestErrorFormatter" +
91+
"\n github.com/go-faster/errors_test.TestErrorFormatter" +
9292
"\n .+/format_test.go:30" +
9393
"\n something more",
9494
regexp: true,

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/ogen-go/errors
1+
module github.com/go-faster/errors
22

33
go 1.17

wrap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"os"
1010
"testing"
1111

12-
"github.com/ogen-go/errors"
12+
"github.com/go-faster/errors"
1313
)
1414

1515
func TestIs(t *testing.T) {

0 commit comments

Comments
 (0)