Files
moxa/_test/type19.go
2020-03-05 14:28:06 +01:00

22 lines
185 B
Go

package main
type T struct {
name string
size int
}
var table = map[int]*T{
0: {
name: "foo",
size: 2,
}}
var s = table[0].size
func main() {
println(s)
}
// Output:
// 2