forceNL inserts newline character if Formatter is not at the. beginning of new line
()
| 204 | // forceNL inserts newline character if Formatter is not at the. |
| 205 | // beginning of new line |
| 206 | func (f *Formatter) forceNL() { |
| 207 | if !f.onNL() { |
| 208 | f.buf.WriteByte('\n') |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | // doIndent outputs indentation space. |
| 213 | // It returns number of characters written. |
no test coverage detected