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/026ChannelSync.go:8–14 ·
view source on GitHub ↗
(done chan bool)
Source
from the content-addressed store, hash-verified
6
)
7
8
func
worker(done
chan
bool) {
9
fmt.Print(
"working..."
)
10
time.Sleep(time.Second)
11
fmt.Println(
"done"
)
12
13
done <- true
14
}
15
16
func
main() {
17
Callers
1
main
Function · 0.70
Calls
2
Println
Method · 0.80
Print
Method · 0.65
Tested by
no test coverage detected