Make the comparison work
This commit is contained in:
parent
0a28f0b93c
commit
f15419eab9
|
@ -58,7 +58,7 @@ func PatternHandler(response http.ResponseWriter, request *http.Request) {
|
||||||
if vars["color"] != "" {
|
if vars["color"] != "" {
|
||||||
var c queue.RGBcolor
|
var c queue.RGBcolor
|
||||||
for cn, cv := range colornames.Map {
|
for cn, cv := range colornames.Map {
|
||||||
if cn == strings.ToLower(vars["name"]) {
|
if cn == strings.ToLower(vars["color"]) {
|
||||||
c[0] = cv.R
|
c[0] = cv.R
|
||||||
c[1] = cv.G
|
c[1] = cv.G
|
||||||
c[2] = cv.B
|
c[2] = cv.B
|
||||||
|
|
Loading…
Reference in New Issue