Skip to content

Commit 28cc11d

Browse files
committed
learning details
1 parent 09966e0 commit 28cc11d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,9 @@ help:
493493
- and most importantly, **it keeps your code more refactorable** because you
494494
don't have to repeat yourself.
495495
496+
<details>
497+
<summary>Learnings...>
498+
496499
## Learnings by so far
497500
498501
We have used the `err2` and `assert` packages in several projects. The results
@@ -514,6 +517,8 @@ been much easier.** There is an excellent [blog post](https://jesseduffield.com/
514517
about the issues you are facing with Go's error handling without the help of
515518
the err2 package.
516519
520+
</details><br/>
521+
517522
## Support And Contributions
518523
519524
The package has been in experimental mode quite long time. Since the Go generics
@@ -531,8 +536,8 @@ Please see the full version history from [CHANGELOG](./CHANGELOG.md).
531536
- bug fix: call stack traversal during unit testing in some situations
532537
- **all generics-based functions are inline expansed**
533538
- *performance* is now *same as if-statements for all functions*
534-
- new assert functions: `MNil`, `CNil`, `Less`, `Greater`
535-
- all assert messages flow Go idiom: `got want`
539+
- new assert functions: `MNil`, `CNil`, `Less`, `Greater`, etc.
540+
- all assert messages follow Go idiom: `got, want`
536541
- `Asserter` can be set per goroutine: `PushAsserter`
537542
- `try` package:
538543
- new check functions: `T`, `T1`, `T2`, `T3`, for quick refactoring to annotate an error locally

0 commit comments

Comments
 (0)