at work
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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:
|
||||
}
|
||||
Reference in New Issue
Block a user