removed input [RELEASE]
This commit is contained in:
parent
e02dbdac5e
commit
183e8d68ac
5
hello.go
5
hello.go
@ -17,11 +17,6 @@ func main(){
|
|||||||
fmt.Println("Hello World! 2")
|
fmt.Println("Hello World! 2")
|
||||||
time.Sleep(duration)
|
time.Sleep(duration)
|
||||||
fmt.Printf("Hello from: %s %s\n",runtime.GOOS,runtime.GOARCH)
|
fmt.Printf("Hello from: %s %s\n",runtime.GOOS,runtime.GOARCH)
|
||||||
time.Sleep(duration)
|
|
||||||
scanner := bufio.NewScanner(os.Stdin)
|
|
||||||
scanner.Scan() // use `for scanner.Scan()` to keep reading
|
|
||||||
line := scanner.Text()
|
|
||||||
fmt.Println("captured:",line)
|
|
||||||
time.Sleep(durMin)
|
time.Sleep(durMin)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user