CompactStyle returns formatting options for minimal whitespace output.
()
| 64 | |
| 65 | // CompactStyle returns formatting options for minimal whitespace output. |
| 66 | func CompactStyle() FormatOptions { |
| 67 | return FormatOptions{ |
| 68 | IndentStyle: IndentSpaces, |
| 69 | IndentWidth: 0, |
| 70 | KeywordCase: KeywordPreserve, |
| 71 | LineWidth: 0, |
| 72 | NewlinePerClause: false, |
| 73 | AddSemicolon: false, |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | // ReadableStyle returns formatting options for human-readable output. |
| 78 | func ReadableStyle() FormatOptions { |
no outgoing calls