Documentation ¶
Overview ¶
Package line provides a datatype for text lines that are generated by package tag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
Line is a line of text.
func IndentableFrom ¶
IndentableFrom returns a line that you can and will indent. Use for most tags.
func UnindentableFrom ¶
UnindentableFrom returns a line that you cannot indent. Use for codeblocks and stuff like that.
func (Line) Indented ¶
Indented returns a copy of the line with one more indentation (for indentable lines) or the same line (for unindentable lines).
func (Line) IsIndentable ¶ added in v3.2.1
IsIndentable is true if the line is indentable.
Click to show internal directories.
Click to hide internal directories.