// Homework 29, problem 1: Vehicle and Car. // // The vehicle and car structs are provided. car embeds vehicle and has no // describe of its own. Make a car in main and call describe on it. It should // use the promoted method, and print " is a vehicle.". // // Run with: go run exercises/29/homework/01-vehicle.go package main import "fmt" type vehicle struct { name string } func (v vehicle) describe() { fmt.Printf("%s is a vehicle.\n", v.name) } type car struct { vehicle } func main() { // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line") }