delve/_fixtures/testnextprog.go
2014-09-19 19:58:16 -05:00

34 lines
336 B
Go

package main
import (
"fmt"
"time"
)
func sleepytime() {
time.Sleep(time.Nanosecond)
}
func helloworld() {
fmt.Println("Hello, World!")
}
func testnext() {
j := 1
for i := 0; i <= 1; i++ {
j += j * (j ^ 3) / 100
helloworld()
}
helloworld()
}
func main() {
for i := 0; i <= 1; i++ {
sleepytime()
testnext()
}
}