Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Space = Text(" ")
Functions ¶
Types ¶
type Dedent ¶
type Dedent struct {
Doc Doc
}
Dedent decreases the level of indentation for the nested document
type Doc ¶
type Doc interface { Flatten() Doc // contains filtered or unexported methods }
func Join ¶
Join returns a document where the given documents are separated with the specified separator document
func WrapBraces ¶
func WrapBrackets ¶
func WrapParentheses ¶
type Group ¶
type Group struct {
Doc Doc
}
Group marks a document to be flattened if it does not fit on one line
type Indent ¶
type Indent struct {
Doc Doc
}
Indent increases the level of indentation for the nested document
Click to show internal directories.
Click to hide internal directories.