feat: complete StrToWordColor switch with color cases

This commit is contained in:
Grail Finder (aider)
2025-05-02 14:43:09 +03:00
parent 722da6d4fa
commit 8b768f919b

View File

@ -14,7 +14,15 @@ const (
func StrToWordColor(s string) WordColor {
switch s {
case "white":
// finish this switch; if not found/default should be beije; ai!
return WordColorWhite
case "blue":
return WordColorBlue
case "red":
return WordColorRed
case "black":
return WordColorBlack
default:
return "beige"
}
}