mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
15 lines
166 B
Go
15 lines
166 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
m := map[int]bool{1: true, 3: true, 5: true}
|
|
for k := range m {
|
|
m[k*2] = true
|
|
}
|
|
fmt.Println("ok")
|
|
}
|
|
|
|
// Output:
|
|
// ok
|