@kjk1/

gobook channels close 5

Go

No description

fork
loading
Files
  • main.go

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8671109930029846","path":"main.go","file":{"path":"main.go","content":{"asEncoding":{"base64":"Ly8gYWxsb3cgZXJyb3IKcGFja2FnZSBtYWluCgpmdW5jIG1haW4oKSB7CgkvLyA6c2hvdyBzdGFydAoJY2ggOj0gbWFrZShjaGFuIGludCkKCWNsb3NlKGNoKQoJY2ggPC0gNSAvLyBwYW5pY3MKCS8vIDpzaG93IGVuZAp9"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
// allow error
package main

func main() {
	// :show start
	ch := make(chan int)
	close(ch)
	ch <- 5 // panics
	// :show end
}