quii / learn-go-with-tests

Learn Go with test-driven development
MIT License
22.21k stars 2.81k forks source link

Quick explain how to add a dependency #786

Open Yagisanatode opened 4 months ago

Yagisanatode commented 4 months ago

https://github.com/quii/learn-go-with-tests/blob/a6c085db36f137cc37b6bba08f908aa8c4e7f14d/html-templates.md?plain=1#L371

Add the following to your imports:

approvals "github.com/approvals/go-approval-tests"

In the terminal enter go mod tidy.

maker2413 commented 3 weeks ago

Thank you for sharing this as I got stumped on this step. This should be added to the book to make it so people don't get stopped here.