houseofcat / turbocookedrabbit

A user friendly RabbitMQ library written in Golang.
MIT License
107 stars 20 forks source link

Error when i try to use library version >= 2.X.X #7

Closed dfelici87 closed 4 years ago

dfelici87 commented 4 years ago

When I try to use a library version v2.0.6 but I get this error: require github.com/houseofcat/turbocookedrabbit: version "v2.0.6" invalid: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2

I use go 1.13, how can i use the last version of library?...

thanks in advance

houseofcat commented 4 years ago

Try changing your imports to v2 i.e. github.com/houseofcat/turbocookedrabbit/v2/pkg/tcr. That's unfortunately required for v2+ in golang.

dfelici87 commented 4 years ago

works! thanks