mirror of
https://gitee.com/johng/gf.git
synced 2024-12-03 20:58:47 +08:00
17 lines
213 B
Go
17 lines
213 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
//var v interface{}
|
|
m := map[string]int {
|
|
"age" : 18,
|
|
}
|
|
//v = m
|
|
p := &m
|
|
(*p)["age"] = 16
|
|
//fmt.Println(v)
|
|
fmt.Println(m)
|
|
} |