server/server.go:44:12: assignment mismatch: 1 variable but uuid.NewV4 returns 2 values
halleyshx opened this issue · comments
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.
Thanks for reporting!
Thanks for reporting!
No thanks,:blush:
What version of golang was this not working for?
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 @jmahc
I‘ve already revert the previous commit, apology for not testing this!
@halleyshx
Try to build with go version above 1.11?