Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct {
// contains filtered or unexported fields
}
Content represents a pair of left and right separators for content.
func NewContent ¶
NewContent creates a new Content separator with the specified left and right separators.
Parameters:
left - the left separator right - the right separator
Returns:
A pointer to a Content struct.
func NewRepeatedContent ¶
NewRepeatedContent creates a new Content separator with the same separator for both left and right.
Parameters:
separator - the separator to use for both left and right
Returns:
A pointer to a Content struct.
type Multiline ¶
type Multiline struct {
// contains filtered or unexported fields
}
Multiline represents separators for formatting multiline content.
func NewMultiline ¶
NewMultiline creates a new Multiline separator with the specified single line, multiple line separators, and tab size.
Parameters:
singleLine - the separator for a single element line - the separator for multiple elements tabSize - the number of tabs to use for indentation
Returns:
A pointer to a Multiline struct.
func (Multiline) MultipleElements ¶ added in v0.1.12
MultipleElements returns the separator for multiple elements.
func (Multiline) MultipleElementsStr ¶ added in v0.1.12
MultipleElementsStr returns the multiple elements separator as a string.
func (Multiline) SingleElement ¶ added in v0.1.12
SingleElement returns the separator for a single element.
func (Multiline) SingleElementStr ¶ added in v0.1.12
SingleElementStr returns the single element separator as a string.