Skip to content

Instantly share code, notes, and snippets.

View membrive's full-sized avatar

Fernando Membrive membrive

View GitHub Profile
@slav
slav / multivalChSample.go
Created December 18, 2016 05:00
Golang sending sending multiple values through channel
package main
import "fmt"
func f(c chan func() (int, string)) {
c <- (func() (int, string) { return 0, "s" })
}
func main() {
c := make(chan func() (int, string))