Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 9f8f436

Browse files
authored
Refine the caution (#148)
1 parent 9357668 commit 9f8f436

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ The generics (type parameters) make the usage type-safe.
2424

2525
The library is [extensible](#extensibility) by design.
2626

27-
> In general, [avoid using assertion libraries](https://go.dev/wiki/TestComments#assert-libraries).
28-
> Use this library if you still have a preference to use one.
29-
> Consider using [`github.com/google/go-cmp`](https://github.com/google/go-cmp)
30-
> and writing custom helpers instead.
27+
> [!CAUTION]
28+
> [Avoid using assertion libraries](https://go.dev/wiki/TestComments#assert-libraries).
29+
> Instead, use [`go-cmp`](https://github.com/google/go-cmp)
30+
> and write custom test helpers.
31+
> Using the popular [`testify`](https://github.com/stretchr/testify)
32+
> may be also an acceptable choice,
33+
> especially together with [`testifylint`](https://github.com/Antonboom/testifylint)
34+
> to avoid common mistakes.
35+
> Use this library if you still want to.
36+
> Consider yourself warned.
3137
3238
### Quick start
3339

0 commit comments

Comments
 (0)