Y
Hacker News
new
|
ask
|
show
|
jobs
How do you implement DI and Interfaces(Contracts) & Implementations on Golang?
2 points
by
resotto
2110 days ago
I’m newbie gopher and I know there is no inheritance in Golang so how do you accomplish above purpose??
Thanks.
1 comments
celestino_127
2109 days ago
In Golang, interfaces are used to circumvent that feature. There is no inheritance, instead Gophers use interfaces in code to share functionality between structs.
link
resotto
2109 days ago
Got it. Thank you.
link