separator

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2025 License: GPL-3.0 Imports: 1 Imported by: 5

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 is the separator for the content

func NewContent

func NewContent(left, right Separator) *Content

NewContent creates a new content separator

func NewRepeatedContent

func NewRepeatedContent(separator Separator) *Content

NewRepeatedContent creates a new content separator with the same separator

func (*Content) Left

func (c *Content) Left() Separator

Left returns the left separator

func (*Content) LeftStr added in v0.1.7

func (c *Content) LeftStr() string

LeftStr returns the left separator as a string

func (*Content) Right

func (c *Content) Right() Separator

Right returns the right separator

func (*Content) RightStr added in v0.1.7

func (c *Content) RightStr() string

RightStr returns the right separator as a string

type Multiline

type Multiline struct {
	// contains filtered or unexported fields
}

Multiline is the separator for the multiline content

func NewMultiline

func NewMultiline(
	singleLine, line Separator,
	tabSize int,
) *Multiline

NewMultiline creates a new multiline separator

func (*Multiline) Line

func (m *Multiline) Line() Separator

Line returns the line separator

func (*Multiline) LineStr added in v0.1.7

func (m *Multiline) LineStr() string

LineStr returns the line separator as a string

func (*Multiline) SingleLine

func (m *Multiline) SingleLine() Separator

SingleLine returns the single line separator

func (*Multiline) SingleLineStr added in v0.1.7

func (m *Multiline) SingleLineStr() string

SingleLineStr returns the single line separator as a string

func (*Multiline) TabSize

func (m *Multiline) TabSize() int

TabSize returns the tab size

func (*Multiline) TabStr added in v0.1.7

func (m *Multiline) TabStr() string

TabStr returns the tab as a string

type Separator

type Separator string

Separator is the separator for a string

const (
	Space     Separator = " "
	Comma     Separator = ","
	NewLine   Separator = "\n"
	Tab       Separator = "\t"
	Dots      Separator = ":"
	Slash     Separator = "/"
	Backslash Separator = "\\"
)

Separator constants

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL