Versions in this module Expand all Collapse all v0 v0.23.2 Feb 12, 2024 Changes in this version + var ErrPrettyMaxRecursionDepthExceeded = errors.AssertionFailedf("max recursion depth exceeded") + func Pretty(d Doc, n int, useTabs bool, tabWidth int, keywordTransform func(string) string) (_ string, err error) + type Doc interface + var HardLine Doc = hardline{} + var Line Doc = line{} + var Nil Doc = nilDoc{} + var SoftBreak Doc = softbreak{} + func Align(d Doc) Doc + func AlignUnder(head, nested Doc) Doc + func BracketDoc(l, x, r Doc) Doc + func Concat(a, b Doc) Doc + func ConcatDoc(a, b, between Doc) Doc + func ConcatLine(a, b Doc) Doc + func ConcatSpace(a, b Doc) Doc + func Fillwords(d ...Doc) Doc + func Fold(f func(a, b Doc) Doc, d ...Doc) Doc + func FoldMap(f func(a, b Doc) Doc, g func(Doc) Doc, d ...Doc) Doc + func Group(d Doc) Doc + func Join(s string, d ...Doc) Doc + func JoinDoc(s Doc, d ...Doc) Doc + func JoinGroupAligned(head, divider string, d ...Doc) Doc + func JoinNestedOuter(lbl string, docFn func(string) Doc, d ...Doc) Doc + func JoinNestedRight(sep Doc, nested ...Doc) Doc + func Keyword(s string) Doc + func NestS(n int16, d Doc) Doc + func NestT(d Doc) Doc + func NestUnder(head, nested Doc) Doc + func Stack(d ...Doc) Doc + func Table(alignment TableAlignment, docFn func(string) Doc, noNewLine bool, ...) Doc + func Text(s string) Doc + type TableAlignment int + const TableLeftAlignFirstColumn + const TableNoAlign + const TableRightAlignFirstColumn + type TableRow struct + Doc Doc + Label string