border

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Border

type Border interface {
	Top(out io.Writer, cols int)
	Left(out io.Writer, row int)
	Right(out io.Writer, row int)
	Bottom(out io.Writer, cols int)
	Width() int
}

Border defines border decoration.

type DebugBorder

type DebugBorder struct {
	Padding string
}

DebugBorder ...

func (DebugBorder) Bottom

func (border DebugBorder) Bottom(out io.Writer, cols int)

Bottom ...

func (DebugBorder) Left

func (border DebugBorder) Left(out io.Writer, row int)

Left ...

func (DebugBorder) Right

func (border DebugBorder) Right(out io.Writer, row int)

Right ...

func (DebugBorder) Top

func (border DebugBorder) Top(out io.Writer, cols int)

Top ...

func (DebugBorder) Width

func (border DebugBorder) Width() int

Width ...

type EmptyBorder

type EmptyBorder struct{}

EmptyBorder display nothing for borders.

func (EmptyBorder) Bottom

func (emptyborder EmptyBorder) Bottom(out io.Writer, cols int)

Bottom do nothing.

func (EmptyBorder) Left

func (emptyborder EmptyBorder) Left(out io.Writer, row int)

Left do nothing.

func (EmptyBorder) Right

func (emptyborder EmptyBorder) Right(out io.Writer, row int)

Right do nothing.

func (EmptyBorder) Top

func (emptyborder EmptyBorder) Top(out io.Writer, cols int)

Top do nothing.

func (EmptyBorder) Width

func (emptyborder EmptyBorder) Width() int

Width claim no width.

type SimpleBorder

type SimpleBorder struct{}

SimpleBorder ...

func (SimpleBorder) Bottom

func (border SimpleBorder) Bottom(out io.Writer, cols int)

Bottom ...

func (SimpleBorder) Left

func (border SimpleBorder) Left(out io.Writer, row int)

Left ...

func (SimpleBorder) Right

func (border SimpleBorder) Right(out io.Writer, row int)

Right ...

func (SimpleBorder) Top

func (border SimpleBorder) Top(out io.Writer, cols int)

Top ...

func (SimpleBorder) Width

func (border SimpleBorder) Width() int

Width ...

Jump to

Keyboard shortcuts

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