Skip to content

Commit 6c624d8

Browse files
committed
more <details>
1 parent 74cb677 commit 6c624d8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func CopyFile(src, dst string) (err error) {
6262
- The `err2` (main) package includes declarative error handling functions.
6363
- The `try` package offers error checking functions.
6464
- The `assert` package implements assertion helpers for **both** unit-testing
65-
and *design-by-contract*.
65+
and *design-by-contract* with the *same API and cross-usage*.
6666

6767
## Performance
6868

@@ -302,8 +302,10 @@ development where you set pre- and post-conditions for *all* of your functions,
302302
> It works *both runtime and for tests.* And even better, same asserts work in
303303
> both running modes.
304304
305+
#### Asserters
306+
305307
<details>
306-
<summary>Fast Clean Code</summary>
308+
<summary>Fast Clean Code with Asserters</summary>
307309
<br/>
308310
309311
Asserts are not meant to replace the normal error checking but speed up the
@@ -312,10 +314,6 @@ value that includes a formatted and detailed assertion violation message. A
312314
developer gets immediate and proper feedback independently of the running mode,
313315
allowing very fast feedback cycles.
314316
315-
</details>
316-
317-
#### Asserters
318-
319317
The assert package offers a few pre-build *asserters*, which are used to
320318
configure *how the assert package deals with assert violations*. The line below
321319
exemplifies how the default asserter is set in the package. (See the
@@ -336,6 +334,8 @@ defer assert.PushAsserter(assert.Plain)()
336334
This is especially good if you want to use assert functions for CLI's flag
337335
validation or you want your app behave like legacy Go programs.
338336
337+
</details>
338+
339339
> [!NOTE]
340340
> Since v0.9.5 you can set these asserters through Go's standard flag package
341341
> just by adding `flag.Parse()` to your program. See more information from

0 commit comments

Comments
 (0)