【发布时间】:2019-06-16 05:12:27
【问题描述】:
我有这样的事情:
x1 := someFunctionWithAnInterfaceReturnValue()
底层类型是这样的:
x2 := map[string] string{"hello": "world"}
如何访问 x1 中的值?
基本上我想要 x1 的等效项:
var value string = x2["hello"]
【问题讨论】:
标签: dictionary go types