feat: complete StrToWordColor switch with color cases
This commit is contained in:
		| @@ -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" | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder (aider)
					Grail Finder (aider)