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) }

Want to kickstart your project?Use the new AI Studio to create your code