You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
348 B
20 lines
348 B
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
"flag"
|
|
)
|
|
|
|
func main() {
|
|
count := flag.Int("count", 10, "Seconds to wait")
|
|
id := flag.Int("id", 1, "Tester ID to use.")
|
|
flag.Parse()
|
|
|
|
fmt.Println(">>> TESTER STARTS, id=", *id, "count=", *count)
|
|
|
|
for i := 0; i < *count; i++ {
|
|
time.Sleep(1 * time.Second)
|
|
fmt.Println("TESTER #", *id)
|
|
}
|
|
}
|
|
|