// Homework 28, problem 2: Total HP. // // The hero struct and newHero are provided. Make a party, add up everyone's HP // with the accumulate pattern, and print "Team HP: ". // // Run with: go run exercises/28/homework/02-total-hp.go package main import "fmt" type hero struct { name string hp int maxHP int } func newHero(name string, hp int) hero { return hero{name: name, hp: hp, maxHP: hp} } func main() { // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line", newHero("Ada", 100)) }