Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 261 Bytes

select.md

File metadata and controls

16 lines (12 loc) · 261 Bytes

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

Inicio