* ast: improve error handling * ast: handle select * dyngo: set filename of executed script * cfg: improve error reporting * Implement select for receiving channels * feat(select): add support for sending channels in case clauses * test: improve tests on select * feat(select): add support for "default" case
14 lines
120 B
Go
14 lines
120 B
Go
package main
|
|
|
|
func main() {
|
|
select {
|
|
default:
|
|
println("no comm")
|
|
}
|
|
println("bye")
|
|
}
|
|
|
|
// Output:
|
|
// no comm
|
|
// bye
|