How to mock in Go – Golang Tutorial



How to mock in Go – Golang Tutorial

How to mock in Go - Golang Tutorial

Learn to build a simple REST api in golang and different ways of mocking using

1. variable function
https://github.com/tech-practice/go-todos/commit/e2c4a6da5eb1830fc31939f8dc5c2ece8eaabda1
2. interface
https://github.com/tech-practice/go-todos/commit/bd51b6d51a5bf3ccfb05dc57071dc3eac269bfd0
3. dependency injection
https://github.com/tech-practice/go-todos/commit/e5466fc61231ba6f2b1d7d123b20c2342a8d15cd
4. testify/mock
https://github.com/tech-practice/go-todos/commit/1ca88329344d2978a57fb177bccf644d26be320a

Comments are closed.