mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
19 lines
162 B
Go
19 lines
162 B
Go
package main
|
|
|
|
func main() {
|
|
a := 3
|
|
switch a {
|
|
case 0:
|
|
println(200)
|
|
case 3:
|
|
println(100)
|
|
fallthrough
|
|
default:
|
|
println(a)
|
|
}
|
|
}
|
|
|
|
// Output:
|
|
// 100
|
|
// 3
|