2 yrs - Translate

https://blog.canopas.com/unit-....testing-in-go-with-m

Unit testing in go with MySQL using gin, sqlx and assert libraries | Canopas
blog.canopas.com

Unit testing in go with MySQL using gin, sqlx and assert libraries | Canopas

Here is a basic example of a unit test that you can write with any APIs in go. We are using the testing package and also an assert library for unit tests.