Documentation ¶
Index ¶
Constants ¶
View Source
const TRUNCATE_MAX = 40
Variables ¶
This section is empty.
Functions ¶
func NewError ¶
NewError creates an error in the gin context.
TODO: log error in this helper function
func ParseClueID ¶ added in v0.0.8
ParseClueID converts a clue string to a clue ID. Clue strings have the format "clue_DJ_1_2", "clue_FJ" and the parsed int64 is of the form <game_id>0<round>0<clue_index>.
func ParseRoundAndColumn ¶
ParseRoundAndColumn parses a clue string and returns the round and column.
Types ¶
Click to show internal directories.
Click to hide internal directories.