Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
func
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
16
func
main() {
17
Callers
1
main
Function · 0.70
Calls
1
Printf
Method · 0.80
Tested by
no test coverage detected