MCPcopy Create free account
hub / github.com/Go-Learning-Land/Go-Learning-Archive / worker

Function worker

GolangBasics/GoByExample/036WaitGroup.go:9–14  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

7)
8
9func worker(id int) {
10 fmt.Printf("Worker %d starting\n", id)
11
12 time.Sleep(time.Second)
13 fmt.Printf("Worker %d done\n", id)
14}
15
16func main() {
17

Callers 1

mainFunction · 0.70

Calls 1

PrintfMethod · 0.80

Tested by

no test coverage detected