Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Soypete/Production-Go-Examples
/ workerPool
Struct
workerPool
exercise-3/main.go:18–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
16
)
17
18
type
workerPool
struct
{
19
numWorkers int
20
mu *sync.Mutex
21
msgs
chan
string
22
wg *sync.WaitGroup
23
}
24
25
func
(wp *workerPool) run() int {
26
numWords := 0
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected