on main help sign in
fix: remove unused func
commit0be7a7bbe045ef93b2404f1db6f6361f5d3c325b authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com> dateWed 18 Jun 2025, 11:14 (1 year ago) parent5249db3
1 file changed−6
internal/highlight/highlight.go−6
internal/highlight/highlight.go−6
@@ -2,7 +2,6 @@ package highlight
22
33import (
44 "bytes"
5− "fmt"
65 "image/color"
76
87 "github.com/alecthomas/chroma/v2"
@@ -53,8 +52,3 @@ func SyntaxHighlight(source, fileName string, bg color.Color) (string, error) {
5352 err = f.Format(&buf, s, it)
5453 return buf.String(), err
5554}
56−
57−func getColor(c color.Color) string {
58− rgba := color.RGBAModel.Convert(c).(color.RGBA)
59− return fmt.Sprintf("#%02x%02x%02x", rgba.R, rgba.G, rgba.B)
60−}