You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tables where the color of a single cell is based on a status (e.g. "UP" is green, and "DOWN" is red). (I'm using color.Sprint() generally for this, or sometimes color.Sprintf.)
Unfortunately the HTML colorizer doesn't understand this, and just puts the ANSI escapes right into the HTML.
Further, I don't see a mechanism like color.Sprint() ... it would be workable if I could do color.SprintHTML() or something that would emit a . ... but setting the class on the TD or TH element works well too. Provided that I can have per-cell tunability of this.