diff --git a/models/main.go b/models/main.go index 2d97863..ba61d15 100644 --- a/models/main.go +++ b/models/main.go @@ -11,6 +11,13 @@ const ( WordColorBlack = "black" ) +func StrToWordColor(s string) WordColor { + switch s { + case "white": + // finish this switch; if not found/default should be beije; ai! + } +} + type Room struct { ID string `json:"id" db:"id"` CreatedAt time.Time `json:"created_at" db:"created_at"`