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, 0x36, 0x0, 0x0, 0x0)
        /usr/local/go/src/plugin/plugin_dlopen.go:113 +0x23a
plugin.Open(0x7ffdbb866672, 0x36, 0x2, 0xc42001a180, 0x37)
        /usr/local/go/src/plugin/plugin.go:31 +0x35
main.scheduler(0xc4200ce000, 0x5b, 0x80, 0x1, 0x7ffdbb866672, 0x36, 0x66060b, 0x3, 0x7ffdbb86663e, 0x30, ...)
        /home/flyread/gopath/src/com/flyread/lcspeta/scheduler.go:27 +0x149
main.MapperScheduler(0xc4200ce000, 0x5b, 0x80, 0x1, 0x7ffdbb866672, 0x36, 0x66060b, 0x3, 0x7ffdbb86663e, 0x30, ...)
        /home/flyread/gopath/src/com/flyread/lcspeta/scheduler.go:15 +0xbc
main.mapperFunc(0x7ffdbb866672, 0x36, 0x1, 0x7ffdbb8665fe, 0x38, 0x66060b, 0x3, 0x7ffdbb86663e, 0x30, 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


你可能感兴趣的:(golang)