select

command
v0.0.0-...-280f8e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: CC0-1.0 Imports: 3 Imported by: 0

README

select

Select trabalha junto com canais para esperar retornos de canais específicos.

select {
case msg1 := <-c1:
    fmt.Println("canal 1 retornou :", msg1)
case msg2 := <-c2:
    fmt.Println("canal 2 retornou :", msg2)
}

Playground

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL