Skip to content

Instantly share code, notes, and snippets.

View asilvr's full-sized avatar

Alex Silver asilvr

View GitHub Profile
@asilvr
asilvr / covariance.go
Last active July 14, 2019 22:51
This example shows how Go delegates covariance to the developer
package main
import (
"fmt"
)
// Animal represents any animal on Earth.
type Animal interface {
Noise() string
}