separator

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 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 {
	Left  Separator
	Right Separator
}

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

type Multiline

type Multiline struct {
	SingleLine Separator
	Line       Separator
	TabSize    int
}

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) Tab

func (m *Multiline) Tab() Separator

Tab returns a tab separator

type Separator

type Separator string

Separator is the separator for a string

const (
	Space   Separator = " "
	Comma   Separator = ","
	NewLine Separator = "\n"
	Tab     Separator = "\t"
)

Separator constants

Jump to

Keyboard shortcuts

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