headings

package
v0.0.0-...-dc2a311 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heading

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

func NewHeading

func NewHeading(separator string, headingLength uint, opts ...Option) *Heading

func (*Heading) Color

func (h *Heading) Color(colors ...color.Attribute)

func (*Heading) Copy

func (h *Heading) Copy(opts ...Option) *Heading

func (*Heading) Write

func (h *Heading) Write(heading string, text string, options ...WriteOption)

type HeadingAlign

type HeadingAlign uint
const (
	AlignRight HeadingAlign = iota
	AlignLeft
)

type Option

type Option func(h *Heading)

func WithAlignRight

func WithAlignRight() Option

func WithColor

func WithColor(color ...color.Attribute) Option

type WriteOption

type WriteOption uint
const (
	NoNewLine WriteOption = iota
)

func (WriteOption) In

func (wo WriteOption) In(opts []WriteOption) bool

Jump to

Keyboard shortcuts

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