Refactor simple-game-server #3813
Labels
area/examples
Examples. Usually found in the `examples` directory
kind/cleanup
Refactoring code, fixing up documentation, etc
https://github.com/googleforgames/agones/blob/main/examples/simple-game-server/main.go is getting really large, and a little unweildy!
Let's take some time to refactor it it into something that's a bit more manageable.
Some suggestions include:
map
of commands rather than a giantswitch
statementsetAnnotation(...)
have very similar function wrappers - can we generalise this in some way?agones/examples/simple-game-server/main.go
Lines 605 to 611 in d85a5ae
...and anything else that jumps out!
The text was updated successfully, but these errors were encountered: