HFO4 / gameboy.live

🕹️ A basic gameboy emulator with terminal "Cloud Gaming" support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

@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.

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

@halleyshx
Try to build with go version above 1.11?

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