func main() { hopwatch.Display("8", 8) hopwatch.Display("9", 9).Break() inside() indirectDisplay("11", 11) indirectBreak() }
func main() { for i := 0; i < 6; i++ { hopwatch.Display("i", i) j := i * i hopwatch.Display("i", i, "j", j).Break(j > 10) hopwatch.Break() } }
func main() { for i := 0; i < 6; i++ { hopwatch.Display("i", i) j := i * i hopwatch.Display("i", i, "j", j).Break(j > 10) hopwatch.Printf("%#v", "printf formatted value(s)") hopwatch.Break() } }
func doit(id int, ready chan int) { log.Printf("before break:%v", id) hopwatch.Display("id", id).Break() log.Printf("after break:%v", id) ready <- id }
func inside() { hopwatch.Display("16", 16) hopwatch.Display("17", 17).Break() }
func main() { bar := "john" hopwatch.Display("main", bar).Break() }
func inside() { hopwatch.Display("15", 15) hopwatch.Display("16", 16).Break() }