Fprinto prints Printo to a custom writer.
(w io.Writer, a ...any)
| 174 | |
| 175 | // Fprinto prints Printo to a custom writer. |
| 176 | func Fprinto(w io.Writer, a ...any) { |
| 177 | if !Output { |
| 178 | return |
| 179 | } |
| 180 | |
| 181 | if w != nil { |
| 182 | color.Fprint(w, "\r", Sprint(a...)) |
| 183 | } else { |
| 184 | color.Print("\r", Sprint(a...)) |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | // RemoveColorFromString removes color codes and OSC 8 hyperlinks from a string. |
| 189 | func RemoveColorFromString(a ...any) string { |
searching dependent graphs…