Fix style with gofmt

This commit is contained in:
Digital 2018-06-30 22:16:07 +02:00
parent f7bea21d7a
commit 8535781be1
2 changed files with 7 additions and 7 deletions

View file

@ -18,10 +18,10 @@ package ui
import (
"encoding/json"
"maunium.net/go/gomuks/debug"
"strings"
"fmt"
"github.com/lucasb-eyer/go-colorful"
"maunium.net/go/gomuks/debug"
"strings"
"unicode"
)
@ -74,7 +74,7 @@ func cmdRainbow(cmd *Command) {
html.WriteRune(char)
continue
}
color := rainbow.GetInterpolatedColorFor(float64(i)/float64(len(text))).Hex()
color := rainbow.GetInterpolatedColorFor(float64(i) / float64(len(text))).Hex()
fmt.Fprintf(&html, "<font color=\"%s\">%c</font>", color, char)
}
tempMessage := cmd.Room.NewTempMessage("m.text", html.String())