マップのキーが明確ではない(map[interface{}]interface{}扱い?)ってことかな

akatakunakatakun のブックマーク 2018/08/16 11:31

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Getting invalid operation: mymap["title"] (type interface {} does not support indexing) when trying to index a map

    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...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう