Can't wrap my head around the DialService interface #87
Unanswered
itsthesteve
asked this question in
Q&A
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
DialService
interface mentioned in the article. I get the concept of interfaces, but I don't see where you're actually referencing it. There are otherDialService
structs 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!
Beta Was this translation helpful? Give feedback.
All reactions