Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/talks. a grouping of talks I have done!
Something went wrong. Try again.
1234567891011121314151617181920package main
import "fmt"
type animal interface { NumLegs() int}
type dog struct{}
func (d dog) NumLegs() string { return "4" }
func main() { takeCutePhoto(dog{})}
func takeCutePhoto(a animal) { fmt.Println("Taking a cute animal photo")}