From 718e0c55c9031b995070f92349481865f2ec86b1 Mon Sep 17 00:00:00 2001 From: Ryan Hamamura <58859899+ryanhamamura@users.noreply.github.com> Date: Mon, 2 Mar 2026 22:48:16 -1000 Subject: [PATCH] fix: satisfy staticcheck comment style for exported consts --- connect4/types.go | 5 ++++- snake/types.go | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/connect4/types.go b/connect4/types.go index 0aa56b7..078947c 100644 --- a/connect4/types.go +++ b/connect4/types.go @@ -6,10 +6,13 @@ import ( "github.com/ryanhamamura/games/player" ) -// NATS subject helpers. +// SubjectPrefix is the NATS subject namespace for connect4 games. const SubjectPrefix = "connect4" +// GameSubject returns the NATS subject for game state updates. func GameSubject(gameID string) string { return SubjectPrefix + "." + gameID } + +// ChatSubject returns the NATS subject for chat messages. func ChatSubject(gameID string) string { return SubjectPrefix + ".chat." + gameID } type Player struct { diff --git a/snake/types.go b/snake/types.go index d1284c1..d94b5d2 100644 --- a/snake/types.go +++ b/snake/types.go @@ -7,10 +7,13 @@ import ( "github.com/ryanhamamura/games/player" ) -// NATS subject helpers. +// SubjectPrefix is the NATS subject namespace for snake games. const SubjectPrefix = "snake" +// GameSubject returns the NATS subject for game state updates. func GameSubject(gameID string) string { return SubjectPrefix + "." + gameID } + +// ChatSubject returns the NATS subject for chat messages. func ChatSubject(gameID string) string { return SubjectPrefix + ".chat." + gameID } type Direction int