lithammer / shortuuid

:mushroom: A generator library for concise, unambiguous and URL-safe UUIDs

Home Page:https://pkg.go.dev/github.com/lithammer/shortuuid/v4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go get error

zanjs opened this issue · comments

commented
PS C:\Users\Anla-E\Desktop> go get github.com/renstrom/shortuuid
# github.com/renstrom/shortuuid
..\go\src\github.com\renstrom\shortuuid\shortuuid.go:21:30: too many arguments in call to DefaultEncoder.Encode
        have (uuid.UUID, error)
        want (uuid.UUID)
..\go\src\github.com\renstrom\shortuuid\shortuuid.go:26:19: too many arguments in call to enc.Encode
        have (uuid.UUID, error)
        want (uuid.UUID)
..\go\src\github.com\renstrom\shortuuid\shortuuid.go:35:17: multiple-value uuid.NewV4() in single-value context
..\go\src\github.com\renstrom\shortuuid\shortuuid.go:49:19: too many arguments in call to enc.Encode
        have (uuid.UUID, error)
        want (uuid.UUID)

Yeah, unfortunately we're kind of stuck in a bad place until https://github.com/satori/go.uuid either tags a new release, or reverts the backwards incompatible changes to master (see satori/go.uuid#66 and satori/go.uuid#70).

Here are some related issues and pull requests: #7 #8 #9 #10 #11