how can I get/set a value from interface of a map?

前端 未结 0 1020
太阳男子
太阳男子 2021-02-07 02:37

Here is what I am trying to do.

person := map[string]int {
    "age": 20,
}
var p interface{} = person
v := reflect.ValueOf(p)
// I want to get/set the          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题