padding

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Padding

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

Padding is a renderable that wraps content with CSS-style padding.

func NewIndent

func NewIndent(renderable console.Renderable, level int) *Padding

NewIndent creates a Padding that indents content by the given level.

func NewPadding

func NewPadding(renderable console.Renderable, pad []int, style *style.Style, expand bool) *Padding

NewPadding creates a Padding renderable.

func (*Padding) Measure

func (p *Padding) Measure(c *console.Console, opts console.Options) console.Measurement

Measure implements console.Measurable.

func (*Padding) Render

func (p *Padding) Render(c *console.Console, opts console.Options) []segment.Segment

Render implements console.Renderable.

Jump to

Keyboard shortcuts

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