// Homework 30, problem 3: Light switch. // // Design a lightSwitch that is on or off. toggle flips it, and isOn reports its // state. Start it off, toggle it a few times, and print the state after each. // // switch is a Go keyword, so the type cannot be called switch. // // Run with: go run exercises/30/homework/03-switch.go package main import "fmt" // TODO: define the lightSwitch 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") }