create basic controller

This commit is contained in:
Ilia Denisov
2025-09-26 20:54:34 +03:00
parent 282150a253
commit 66eeefc65d
13 changed files with 357 additions and 165 deletions
+4
View File
@@ -27,3 +27,7 @@ func (g Game) Votes(raceID uuid.UUID) float64 {
func (g Game) MarshalBinary() (data []byte, err error) {
return json.Marshal(&g)
}
func (g Game) UnmarshalBinary(data []byte) error {
return json.Unmarshal(data, &g)
}