writeLine writes a line of text to the given string builder with a prefix.
(sb *strings.Builder, prefix string, format string, values ...any)
| 49 | |
| 50 | // writeLine writes a line of text to the given string builder with a prefix. |
| 51 | func writeLine(sb *strings.Builder, prefix string, format string, values ...any) { |
| 52 | if prefix != "" { |
| 53 | sb.WriteString(prefix) |
| 54 | } |
| 55 | sb.WriteString(fmt.Sprintf(format, values...)) |
| 56 | sb.WriteString("\n") |
| 57 | } |
| 58 | |
| 59 | // debugString writes debug information to the given string builder with the |
| 60 | // given prefix. |
no test coverage detected
searching dependent graphs…