Skip to content

Instantly share code, notes, and snippets.

View BruceWangNo1's full-sized avatar
🙋‍♂️
CS graduate student looking for a job...

Bruce Wang BruceWangNo1

🙋‍♂️
CS graduate student looking for a job...
  • Microsoft
View GitHub Profile
@BruceWangNo1
BruceWangNo1 / print_number.go
Created March 24, 2019 12:47
code for the Medium Post: Implementation Details of Goroutine
package main
import (
"fmt"
"time"
)
func printNumber(from, to int, c chan int) {
for x := from; x <= to; x++ {
fmt.Printf("%d\n", x)