o1egl / paseto

Platform-Agnostic Security Tokens implementation in GO (Golang)
MIT License
833 stars 34 forks source link

go get retrieves version 1 #23

Closed rpwatkins closed 4 years ago

rpwatkins commented 4 years ago

Using go get retrieves version 1 of the library rather than version 2. Is version 2 available like other versioned packages? I tried adding the version number to the package, but no luck.

Thanks

o1egl commented 4 years ago

@rpwatkins I think the problem is that you are running this command go get github.com/o1egl/paseto which adds v1.x.x to your go.mod file. To retrieve v2 you need to run go get github.com/o1egl/paseto/v2