diff --git a/badge.go b/badge.go index 5cd8e49..ffc6c89 100644 --- a/badge.go +++ b/badge.go @@ -213,6 +213,7 @@ func (g *Generator) generateBadgeSimple(template, message, color string) []byte // ////////////////////////////////////////////////////////////////////////////////// // +// formatColor formats color func formatColor(c string) string { if strings.HasPrefix(c, "#") { c = strings.TrimLeft(c, "#")