api/game.go
Function UpdateGameHandler
has 98 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func UpdateGameHandler(app *App) func(c echo.Context) error {
return func(c echo.Context) error {
c.Set("route", "UpdateGame")
start := time.Now()
gameID := c.Param("gameID")
Function CreateGameHandler
has 79 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func CreateGameHandler(app *App) func(c echo.Context) error {
return func(c echo.Context) error {
c.Set("route", "CreateGame")
start := time.Now()
Your code does not pass gofmt in 2 places. Go fmt your code! Open
Open
// khan
- Exclude checks