loader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dots = SpinnerStyle{
	Frames:  []string{"⣾", "⣽", "⣻", "⢿", "⡿", "⣟", "⣯", "⣷"},
	Speed:   100 * time.Millisecond,
	Message: "Thinking",
	Color:   "\033[32m",
}

Functions

This section is empty.

Types

type Loader

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

func New

func New(style SpinnerStyle) *Loader

func (*Loader) SetMessage

func (l *Loader) SetMessage(message string)

func (*Loader) Start

func (l *Loader) Start()

func (*Loader) Stop

func (l *Loader) Stop()

Stop halts the spinner. Safe to call multiple times — only the first call clears the line; subsequent calls are no-ops.

type SpinnerStyle

type SpinnerStyle struct {
	Frames  []string
	Message string
	Color   string
	Speed   time.Duration
}

Jump to

Keyboard shortcuts

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