delve/_fixtures/testnextprog.go

34 lines
336 B
Go
Raw Normal View History

package main
import (
"fmt"
"time"
)
func sleepytime() {
2014-09-20 00:58:16 +00:00
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() {
2014-09-20 00:58:16 +00:00
for i := 0; i <= 1; i++ {
sleepytime()
testnext()
}
}