I’m a beginner in Go. I dont have much experience with OOPs so i’ having difficulty understanding interfaces.
I dont know why but I seriously dont get interfaces. I dont know how to use them correctly. Interfaces really confuses me( also dependency injection using interfaces)
In the video he explains how to create a struct which implements the interface and now you can access different methods.
But I could have simple a method and accessed it with that struct instead.
Can anybody please explain in not so beginner friendly way?