遇到错误:panic serving 127.0.0.1:62576: runtime error
来源:13-2 限流意义&前端JS限流代码实现(下)
慕粉慕粉1888
2020-04-01
老师我运行我的代码和老师的源码都是这个错误,麻烦看下什么问题,谢谢
2020/04/01 21:08:38 http: panic serving 127.0.0.1:62576: runtime error: invalid memory address or nil pointer dereference
goroutine 18813 [running]:
net/http.(*conn).serve.func1(0xc008b274a0)
/usr/local/Cellar/go/1.13.6/libexec/src/net/http/server.go:1767 +0x139
panic(0x131cba0, 0x1614150)
/usr/local/Cellar/go/1.13.6/libexec/src/runtime/panic.go:679 +0x1b2
main.GetCurl(0xc008949760, 0x20, 0xc008b91a00, 0x0, 0x0, 0x0, 0x0, 0x13f80a0, 0xc008f7d3e0)
/Users/xxd/go/src/imooc-product-sourceCode/validate.go:181 +0x37e
main.GetDataFromOtherMap(0x13889d4, 0x9, 0xc008b91a00, 0x13889d4)
/Users/xxd/go/src/imooc-product-sourceCode/validate.go:137 +0xc1
main.(*AccessControl).GetDistributedRight(0x1620380, 0xc008b91a00, 0x10)
/Users/xxd/go/src/imooc-product-sourceCode/validate.go:106 +0xb3
1回答
-
Cap
2020-04-02
遇到的实例有没有初始化
012020-04-02
相似问题
回答 2