Can't wrap my head around the DialService interface #87
Unanswered
itsthesteve
asked this question in
Q&A
Replies: 2 comments
|
The idea in Go is that you don't have an Go by example is a nice ressource for that kind of things: |
0 replies
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm getting into Go and ran across this article. I've been combing through this repo and it's super helpful! The one thing I've been scratching my head about is the
DialServiceinterface mentioned in the article. I get the concept of interfaces, but I don't see where you're actually referencing it. There are otherDialServicestructs with the receiver methods, but the interface is just... kinda there, and has the same name as the structs created elsewhere. I though there was some Go magic that does automagic application if an interface/struct have the same name but no.Example
I'm still learning this stuff but this stumped me. Thanks!
All reactions