Mock objects meet the interface requirements of, and stand in for, more complex real ones.
References
Reference
URL
How to mock? Go Way.
https://medium.com/@ankur_anand/how-to-mock-in-your-go-golang-tests-b9eee7d7c266