Y
Hacker News
new
|
ask
|
show
|
jobs
by
majewsky
2517 days ago
Go supports parametric polymorphism by specifying arguments with an interface type.
func DoWorkWith(foo Loggable) { ... } type Loggable interface { //for example LogTo(os.Writer) }