gofmt: bring internal/ and cmd/ back to gofmt -l clean

Mechanical `gofmt -w ./internal ./cmd`. Mostly struct-field realignment that
had drifted, plus a few trailing-newline fixes. No behaviour change — gofmt is
semantics-preserving, and build/vet/test are green either side.

Split out from the code-review fixes that follow so those stay reviewable
instead of hiding inside a wall of realignment.
This commit is contained in:
prosolis
2026-07-10 07:18:07 -07:00
parent 08d3053368
commit 3369d7d8fe
108 changed files with 1248 additions and 1260 deletions

View File

@@ -39,28 +39,28 @@ type unoMultiPlayer struct {
}
type unoMultiGame struct {
id string
roomID id.RoomID // games room
ante float64
players []*unoMultiPlayer // in turn order (includes bot)
currentIdx int
direction int // +1 or -1
drawPile []unoCard
discardTop unoCard
topColor unoColor
phase unoMultiPhase
drawnCard *unoCard // card drawn this turn
id string
roomID id.RoomID // games room
ante float64
players []*unoMultiPlayer // in turn order (includes bot)
currentIdx int
direction int // +1 or -1
drawPile []unoCard
discardTop unoCard
topColor unoColor
phase unoMultiPhase
drawnCard *unoCard // card drawn this turn
pendingCard *unoCard // wild waiting for color
// Wild Draw Four challenge state
wd4Player *unoMultiPlayer // who played the WD4
wd4Victim *unoMultiPlayer // who can challenge
wd4PrevColor unoColor // color before the wild was played
turns int
turnID int // monotonic, used to invalidate stale timers
startedAt time.Time
done bool
bookDown bool
turns int
turnID int // monotonic, used to invalidate stale timers
startedAt time.Time
done bool
bookDown bool
// No Mercy mode
noMercy bool