diff --git a/gotime/src/meatballhat.com/gotour-artifacts/buffered-channels/main.go b/gotime/src/meatballhat.com/gotour-artifacts/buffered-channels/main.go new file mode 100644 index 0000000..c47b4ae --- /dev/null +++ b/gotime/src/meatballhat.com/gotour-artifacts/buffered-channels/main.go @@ -0,0 +1,11 @@ +package main + +import "fmt" + +func main() { + c := make(chan int, 2) + c <- 1 + c <- 2 + fmt.Println(<-c) + fmt.Println(<-c) +}