progressbar

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 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 Option

type Option func(*ProgressBar)

func WithEmptyColor

func WithEmptyColor(c color.Color) Option

func WithFillColor

func WithFillColor(c color.Color) Option

type ProgressBar

type ProgressBar struct {
	Width      int
	Percentage float64
	FillColor  color.Color
	EmptyColor color.Color
}

func New

func New(width int, percentage float64, opts ...Option) ProgressBar

func (ProgressBar) Render

func (p ProgressBar) Render() string

Jump to

Keyboard shortcuts

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