22 lines
276 B
Go
22 lines
276 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
var i int
|
|
for {
|
|
i++
|
|
time.Sleep(1 * time.Second)
|
|
wd, _ := os.Getwd()
|
|
fmt.Printf("hello %s\n", wd)
|
|
if i > 20 {
|
|
goto exit
|
|
}
|
|
}
|
|
exit:
|
|
}
|