HFO4 / gameboy.live

🕹️ A basic gameboy emulator with terminal "Cloud Gaming" support
MIT License
4.69k stars 232 forks source link

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

Closed halleyshx closed 5 years ago

halleyshx commented 5 years ago

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 commented 5 years ago

Thanks for reporting!

halleyshx commented 5 years ago

Thanks for reporting!

No thanks,:blush:

jdgiotta commented 5 years ago

What version of golang was this not working for?

jmahc commented 5 years ago

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 commented 5 years ago

@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 ec8034329501bd484dc02254c7ece5f5680902d7 works And from current master (d6ef6e92e437f994cef58efe1d8fff3d9d605914) does not work.

HFO4 commented 5 years ago

@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 commented 5 years ago

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