MCPcopy Create free account
hub / github.com/derekbanas/Go-Tutorial / nums1

Function nums1

hellogo.go:230–234  ·  view source on GitHub ↗

These functions will print in order using channels Func receives a channel and then sends values over channels once each time it is called

(channel chan int)

Source from the content-addressed store, hash-verified

228// Func receives a channel and then sends values
229// over channels once each time it is called
230func nums1(channel chan int) {
231 channel <- 1
232 channel <- 2
233 channel <- 3
234}
235func nums2(channel chan int) {
236 channel <- 4
237 channel <- 5

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected