// Homework 29, challenge: Two kinds. // // Build an animal struct with a name field, and two structs that embed it: // bird and fish. Each has its own move method, which prints " flies." or // " swims.". Declare an interface mover with the one method move. Make // one of each, put them in a []mover, and loop over it calling move. // // Run with: go run exercises/29/homework/04-two-kinds.go package main import "fmt" // TODO: define animal, bird, fish, mover and the methods here, outside main. func main() { // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line") }