Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/divan/gotrace
/ logger
Function
logger
examples/server2.go:17–21 ·
view source on GitHub ↗
(ch chan int)
Source
from the content-addressed store, hash-verified
15
}
16
17
func
logger(ch
chan
int) {
18
for
{
19
fmt.Println(<-ch)
20
}
21
}
22
23
func
server(l net.Listener, ch
chan
int) {
24
for
{
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected