Understanding Golang Mock

Hello Friends,

I am very new to golang. Switched my career from Linux admin to golang development. I am trying to find some good resources to understand mocking in golang using interfaces, but I keep getting confused from the articles from the internet as I am not able to figure out the pattern. Can you please tell me how do you plan about how to mock? I mean there must be a pattern like we need an interface, a struct, a method, how they must be interconnected, etc.

Any helps would be appreciated. Thanks in advance.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.