package main
type Student struct {
name string
}
func main() {
m := map[string]Student{"student": {"liuxiaojie"}}
m["student"].name = "wangxiaoli"
}
package main
type Student struct {
name string
}
func main() {
m := map[string]Student{"student": {"liuxiaojie"}}
m["student"].name = "wangxiaoli"
}
文章来源:智云一二三科技
文章标题:golang面试题12之map中的Value地址是可寻址的吗
文章地址:https://www.zhihuclub.com/101183.shtml