fix: satisfy staticcheck comment style for exported consts
All checks were successful
CI / Deploy / test (pull_request) Successful in 14s
CI / Deploy / lint (pull_request) Successful in 25s
CI / Deploy / deploy (pull_request) Has been skipped

This commit is contained in:
Ryan Hamamura
2026-03-02 22:48:16 -10:00
parent dcf76bb773
commit 718e0c55c9
2 changed files with 8 additions and 2 deletions

View File

@@ -6,10 +6,13 @@ import (
"github.com/ryanhamamura/games/player" "github.com/ryanhamamura/games/player"
) )
// NATS subject helpers. // SubjectPrefix is the NATS subject namespace for connect4 games.
const SubjectPrefix = "connect4" const SubjectPrefix = "connect4"
// GameSubject returns the NATS subject for game state updates.
func GameSubject(gameID string) string { return SubjectPrefix + "." + gameID } 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 } func ChatSubject(gameID string) string { return SubjectPrefix + ".chat." + gameID }
type Player struct { type Player struct {

View File

@@ -7,10 +7,13 @@ import (
"github.com/ryanhamamura/games/player" "github.com/ryanhamamura/games/player"
) )
// NATS subject helpers. // SubjectPrefix is the NATS subject namespace for snake games.
const SubjectPrefix = "snake" const SubjectPrefix = "snake"
// GameSubject returns the NATS subject for game state updates.
func GameSubject(gameID string) string { return SubjectPrefix + "." + gameID } 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 } func ChatSubject(gameID string) string { return SubjectPrefix + ".chat." + gameID }
type Direction int type Direction int