Generation

generate functionSat, 12 Nov 2022

non blocking queue

func main() { ch := make(chan string, 2) ch <- "hello" ch <- "world" fmt.Println(<-ch) fmt.Println(<-ch) }

Questions about programming?Chat with your personal AI assistant