We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Description ../github.com/GoAdminGroup/go-admin/plugins/admin/modules/helper.go:42:19: multiple-value uuid.NewV4() in single-value context
How to reproduction Just use the latest Go distribution with the latest GoAdmin lib.
Expect The project to start.
Versions
Others An easy fix will be changing the Uuid function to: `
func Uuid() string { u, _ := uuid.NewV4() return u.String() // return uuid.NewV4().String() }`
The text was updated successfully, but these errors were encountered:
@vborisov In the latest version of go.uuid, the api NewV4() has only one return value.
NewV4()
Sorry, something went wrong.
It's very strange as I'm with the same version of go.uuid and the latest of Golang it generates an error.
func NewV4() (UUID, error)
I'm seeing that there are two values returned - UUID and error.
Hello!
I have the same problem.
go1.16.9 linux/amd64 github.com/GoAdminGroup/go-admin v1.2.23 github.com/satori/go.uuid v1.2.0
go build -mod vendor my-admin # github.com/GoAdminGroup/go-admin/plugins/admin/modules vendor/github.com/GoAdminGroup/go-admin/plugins/admin/modules/helper.go:50:19: multiple-value uuid.NewV4() in single-value context make: *** [my-admin] Error 2
Could you reopen the issue, please?
No branches or pull requests
Bug Description ../github.com/GoAdminGroup/go-admin/plugins/admin/modules/helper.go:42:19: multiple-value uuid.NewV4() in single-value context
How to reproduction Just use the latest Go distribution with the latest GoAdmin lib.
Expect The project to start.
Versions
Others
An easy fix will be changing the Uuid function to:
`
func Uuid() string {
u, _ := uuid.NewV4()
return u.String()
// return uuid.NewV4().String()
}`
The text was updated successfully, but these errors were encountered: