// Homework 30, problem 1: Counter. // // Design a counter that starts at 0, with the methods increment, get and reset. // Other code should change the count only through those methods. Show it // counting, reading and resetting. // // Run with: go run exercises/30/homework/01-counter.go package main import "fmt" // TODO: define the counter struct and its methods here, outside main. func main() { // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line") }