gob: type not registered for interface: map[string]interface {}

╄→гoц情女王★ 提交于 2019-12-03 04:55:53

add

gob.Register(map[string]interface{}{})

http://play.golang.org/p/Dd3IzJgl0A

Probably yes, but you do have to Register your type beforehand. See http://golang.org/pkg/encoding/gob/#Register.

The details are documented in http://golang.org/pkg/encoding/gob/#hdr-Encoding_Details

(It really does help to look at the Go documentation :-)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!