Beispiel #1
0
func main() {
	hopwatch.Display("8", 8)
	hopwatch.Display("9", 9).Break()
	inside()
	indirectDisplay("11", 11)
	indirectBreak()
}
Beispiel #2
0
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()
	}
}
Beispiel #3
0
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()
}
Beispiel #6
0
func main() {
	bar := "john"
	hopwatch.Display("main", bar).Break()
}
Beispiel #7
0
func inside() {
	hopwatch.Display("15", 15)
	hopwatch.Display("16", 16).Break()
}