go语言get和post请求的总结,把服务代码和Get和Post代码结合在一起了。

luominggao123 · 2017-06-24 10:01:34 · 4962 次点击

panic serving 127.0.0.1:55626: interface conversion: interface {} is nil, not map[string]interface {}

62行: m := f.(map[string]interface{})

这个是什么原因?

#2
更多评论
polaris
社区,需要你我一同完善!

:thumbsup:

#1

json.Unmarshal(result, &f) 应该是 err=json.Unmarshal(result, &f) if err!=nil{ panic(err) }

没有做错误判断

#3