show

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(localFolder string) error

Types

type Box

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

func NewBox

func NewBox() *Box

func (*Box) AddPanel

func (b *Box) AddPanel(format string, args ...any) *Panel

func (*Box) Write

func (b *Box) Write(w io.Writer)

type Color

type Color uint8
const (
	White Color = iota
	Green
	Blue
	Yellow
	Cyan
	Red
	Grey
)

func (Color) String

func (c Color) String() string

type Panel

type Panel struct {
	Header  string
	Content string
	// contains filtered or unexported fields
}

func (*Panel) AddContent

func (p *Panel) AddContent(format string, args ...any) *Panel

func (*Panel) ShowFirst

func (p *Panel) ShowFirst(w io.Writer)

func (*Panel) ShowLast

func (p *Panel) ShowLast(w io.Writer)

func (*Panel) ShowMiddle

func (p *Panel) ShowMiddle(w io.Writer)

Jump to

Keyboard shortcuts

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