mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
18 lines
198 B
Go
18 lines
198 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"image"
|
|
)
|
|
|
|
func main() {
|
|
v := map[string]*image.Point{
|
|
"foo": {X: 3, Y: 2},
|
|
"bar": {X: 4, Y: 5},
|
|
}
|
|
fmt.Println(v["foo"], v["bar"])
|
|
}
|
|
|
|
// Output:
|
|
// (3,2) (4,5)
|