Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
Signed-off-by: Tom <[email protected]>
  • Loading branch information
tmzane authored Sep 13, 2023
1 parent e29fa65 commit 57e2293
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ go get go-simpler.org/assert

⚠️ This package is not even meant to be a dependency!
It's tiny (<100 LoC), so you can just copy-paste it into your project.
There is also a special tool to do this automatically,
add the following directive to any `.go` file in the root of your project and run `go generate ./...`:
There is also a special tool to do this automatically:
just add the following directive to any `.go` file and run `go generate ./...`:

```go
//go:generate go run -tags=copier go-simpler.org/assert/cmd/copier .
Expand All @@ -51,8 +51,6 @@ Optional format and arguments can be provided to any assertion to customize the
assert.Equal[E](t, 1, 2, "values are not equal\nactual: %v\nexpected: %v", 1, 2)
```

## 🧪 Assertions

### Equal

Asserts that two values are equal.
Expand Down

0 comments on commit 57e2293

Please sign in to comment.