separator

package
v1.3.25 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Separator

type Separator struct {
	Colorizer color.Colorizer
}

struct separator holds the separator config.

func New

func New(conf config.SeparatorConfig) *Separator

New returns a separator struct that is capable of displaying a colorized line across the terminal.

func (*Separator) Display

func (s *Separator) Display() string

Display repeats s.Char across the terminal, and applies s.Colorizer to it.

Jump to

Keyboard shortcuts

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