dotfiles/doc/golang.md

13 lines
191 B
Markdown
Raw Normal View History

2021-09-26 02:24:31 +00:00
# Debugging
2021-09-28 16:13:27 +00:00
2021-09-26 02:24:31 +00:00
- debug a specific test-case
```sh
dlv test --build-flags='path/to/module' -- -test.run ^TestFunctionName$
```
2021-09-28 16:13:27 +00:00
- run a specific test-case
```
go test -run TestFunctionName
```