golang 中的包冲突

前端之家收集整理的这篇文章主要介绍了golang 中的包冲突前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1."github.com/satori/go.uuid" 与"github.com/go-sql-driver/MysqL" 冲突,冲突的结果为:

panic: interface conversion: *net.IPAddr is not net.sockaddr: missing method sockaddr

goroutine 1 [running]:
plugin.lastmoduleinit(0x1eab760,0xc42000e0e0,0x1eac7e0,0x36,0x960620)
        /usr/local/go/src/runtime/plugin.go:60 +0x438
plugin.open(0x7ffdbb866672,0x0,0x0)
        /usr/local/go/src/plugin/plugin_dlopen.go:113 +0x23a
plugin.Open(0x7ffdbb866672,0x2,0xc42001a180,0x37)
        /usr/local/go/src/plugin/plugin.go:31 +0x35
main.scheduler(0xc4200ce000,0x5b,0x80,0x1,0x7ffdbb866672,0x66060b,0x3,0x7ffdbb86663e,0x30,...)
        /home/flyread/gopath/src/com/flyread/lcspeta/scheduler.go:27 +0x149
main.MapperScheduler(0xc4200ce000,...)
        /home/flyread/gopath/src/com/flyread/lcspeta/scheduler.go:15 +0xbc
main.mapperFunc(0x7ffdbb866672,0x7ffdbb8665fe,0x38,0xc42001c090,...)
        /home/flyread/gopath/src/com/flyread/lcspeta/main.go:174 +0x124
main.main()
        /home/flyread/gopath/src/com/flyread/lcspeta/main.go:67 +0x4a5

猜你在找的Go相关文章