WithIndent sets the indentation string used when beautifying SQL. The indent parameter should not be empty to maintain proper formatting.
(indent string)
| 40 | // WithIndent sets the indentation string used when beautifying SQL. |
| 41 | // The indent parameter should not be empty to maintain proper formatting. |
| 42 | func (f *Formatter) WithIndent(indent string) *Formatter { |
| 43 | f.indent = indent |
| 44 | return f |
| 45 | } |
| 46 | |
| 47 | func (f *Formatter) writeIndentIfNeeded() { |
| 48 | if !f.lineStart { |
no outgoing calls