Skip to content

Commit

Permalink
Use pkg.go.dev instead of godoc.org
Browse files Browse the repository at this point in the history
Traffic from godoc.org redirects to the corresponding page on
pkg.go.dev.

Reference: https://blog.golang.org/godoc.org-redirect
  • Loading branch information
justinpage committed Apr 8, 2021
1 parent 86ebe5e commit 4c088ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Professional lightweight testing mini-framework for Go.

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

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

is := is.New(t)

signedin, err := isSignedIn(ctx)
is.NoErr(err) // isSignedIn error
is.Equal(signedin, true) // must be signed in

body := readBody(r)
is.True(strings.Contains(body, "Hi there"))

}
```

Expand Down

0 comments on commit 4c088ec

Please sign in to comment.