サクサク読めて、アプリ限定の機能も多数!
マップのキーが明確ではない(map[interface{}]interface{}扱い?)ってことかな
akatakun のブックマーク 2018/08/16 11:31
Getting invalid operation: mymap["title"] (type interface {} does not support indexing) when trying to index a map[Go]マップのキーが明確ではない(map[interface{}]interface{}扱い?)ってことかな2018/08/16 11:31
このブックマークにはスターがありません。 最初のスターをつけてみよう!
stackoverflow.com2015/03/18
I have data that's in a map, and I want to index into the map by key to get a value. mdi, err := page.Metadata() fmt.Println(mdi["title"]) However I keep getting the error message invalid operation...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /
マップのキーが明確ではない(map[interface{}]interface{}扱い?)ってことかな
akatakun のブックマーク 2018/08/16 11:31
このブックマークにはスターがありません。
最初のスターをつけてみよう!
Getting invalid operation: mymap["title"] (type interface {} does not support indexing) when trying to index a map
stackoverflow.com2015/03/18
I have data that's in a map, and I want to index into the map by key to get a value. mdi, err := page.Metadata() fmt.Println(mdi["title"]) However I keep getting the error message invalid operation...
2 人がブックマーク・1 件のコメント
\ コメントが サクサク読める アプリです /