Skip to content

Commit 4c088ec

Browse files
committed
Use pkg.go.dev instead of godoc.org
Traffic from godoc.org redirects to the corresponding page on pkg.go.dev. Reference: https://blog.golang.org/godoc.org-redirect
1 parent 86ebe5e commit 4c088ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Professional lightweight testing mini-framework for Go.
33

44
* Easy to write and read
5-
* [Beautifully simple API](https://godoc.org/github.com/matryer/is) with everything you need: `is.Equal`, `is.True`, `is.NoErr`, and `is.Fail`
5+
* [Beautifully simple API](https://pkg.go.dev/github.com/matryer/is) with everything you need: `is.Equal`, `is.True`, `is.NoErr`, and `is.Fail`
66
* Use comments to add descriptions (which show up when tests fail)
77

88
Failures are very easy to read:
@@ -18,14 +18,14 @@ the helper methods:
1818
func Test(t *testing.T) {
1919

2020
is := is.New(t)
21-
21+
2222
signedin, err := isSignedIn(ctx)
2323
is.NoErr(err) // isSignedIn error
2424
is.Equal(signedin, true) // must be signed in
25-
25+
2626
body := readBody(r)
2727
is.True(strings.Contains(body, "Hi there"))
28-
28+
2929
}
3030
```
3131

0 commit comments

Comments
 (0)