rlTable produces a Table using Right alignment of the first column.
(rows ...pretty.TableRow)
| 204 | |
| 205 | // rlTable produces a Table using Right alignment of the first column. |
| 206 | func (p *PrettyCfg) rlTable(rows ...pretty.TableRow) pretty.Doc { |
| 207 | alignment := pretty.TableNoAlign |
| 208 | if p.Align != PrettyNoAlign { |
| 209 | alignment = pretty.TableRightAlignFirstColumn |
| 210 | } |
| 211 | return pretty.Table(alignment, pretty.Keyword, p.DoNotNewLineAfterColName, rows...) |
| 212 | } |
| 213 | |
| 214 | // llTable produces a Table using Left alignment of the first column. |
| 215 | func (p *PrettyCfg) llTable(docFn func(string) pretty.Doc, rows ...pretty.TableRow) pretty.Doc { |