Skip to content
New issue

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

server/server.go:44:12: assignment mismatch: 1 variable but uuid.NewV4 returns 2 values #9

Closed
halleyshx opened this issue May 5, 2019 · 7 comments

Comments

@halleyshx
Copy link

halleyshx commented May 5, 2019

go build -o gbdotlive main.go
# github.com/HFO4/gbc-in-cloud/server
server/server.go:44:12: assignment mismatch: 1 variable but uuid.NewV4 returns 2 values

in the server/server.go
PlayerID := uuid.NewV4()
I change the return like this:
PlayerID, _ := uuid.NewV4()
It worked.

@HFO4
Copy link
Owner

HFO4 commented May 6, 2019

Thanks for reporting!

@halleyshx
Copy link
Author

Thanks for reporting!

No thanks,:blush:

@HFO4 HFO4 closed this as completed in d6ef6e9 May 6, 2019
@jdgiotta
Copy link

What version of golang was this not working for?

@jmahc
Copy link

jmahc commented May 10, 2019

I am on 1.12.5 and had to revert the change because I was getting

assignment mismatch: 2 variables but uuid.NewV4 returns 1 value

@shokinn
Copy link

shokinn commented May 12, 2019

@HFO4
Did you take a look on this?
I've the same issue as @jmahc.

I'm on a Alpine 3.9 with a GO 1.12.5 and building it from the master branch.
So Building from ec80343 works
And from current master (d6ef6e9) does not work.

@HFO4
Copy link
Owner

HFO4 commented May 12, 2019

@shokinn @jmahc
I‘ve already revert the previous commit, apology for not testing this!

@halleyshx
Try to build with go version above 1.11?

@halleyshx
Copy link
Author

@HFO4 Sorry,I forgot. Maybe it was go1.12.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants