update readme and taskfile
This commit is contained in:
parent
ff30f6c3d6
commit
efa86a6e22
2 changed files with 60 additions and 3 deletions
20
README.md
20
README.md
|
|
@ -60,3 +60,23 @@ if errors.As(err, &e) {
|
|||
log.Printf("op=%s", e.Op)
|
||||
}
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
This repo uses [Task](https://taskfile.dev) as its task runner. After cloning:
|
||||
|
||||
```bash
|
||||
task install:tools # installs github.com/mfridman/tparse
|
||||
task # vet + tests
|
||||
```
|
||||
|
||||
Common targets:
|
||||
|
||||
| Task | What it does |
|
||||
| ----------------- | ------------------------------------- |
|
||||
| `task` | `vet` + `test` (the default) |
|
||||
| `task test` | `go test ./...` piped through tparse |
|
||||
| `task test:race` | tests under the race detector |
|
||||
| `task vet` | `go vet ./...` |
|
||||
| `task fmt` | `gofmt -w .` |
|
||||
| `task tidy` | `go mod tidy` |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue