Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
I don't know if you're familiar with Docker, but there's a package called ory/dockertest that allows you to run a container per suite (or per test it's up to you), that way you can actually test the code against a real local running database.
OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.
Sql mock driver for golang to test database interactions
For testing DB queries I use https://github.com/DATA-DOG/go-sqlmock for unit tests. I then have a separate integration test suite that runs against all our services using Docker.
[HELP] how to test this piece of code?
1 project | reddit.com/r/golang | 29 Dec 2021
What are the REST API reference projects that can be used as a guide in 2021?
10 projects | reddit.com/r/golang | 24 Nov 2021
Do you write integration tests in go?
3 projects | reddit.com/r/golang | 7 Sep 2021
Air – Live reload when developing with Go
6 projects | news.ycombinator.com | 30 Jul 2021
Stop Mocking Your System
2 projects | news.ycombinator.com | 4 Jul 2021