Categorygithub.com/aisk/chrysanthemum
modulepackage
0.0.0-20241023125002-6dd07097f8c9
Repository: https://github.com/aisk/chrysanthemum.git
Documentation: pkg.go.dev

# README

chrysanthemum

GoDoc

菊花【Jú Huā】

Add a text spinner to your terminal applications.

Usage

package main

import (
	"github.com/aisk/chrysanthemum"
	"time"
)

func main() {
	c := chrysanthemum.New("I'll be ok").Start()
	time.Sleep(5 * time.Second)
	c.End()
	c = chrysanthemum.New("I'll be error").Start()
	time.Sleep(5 * time.Second)
	c.Failed()
}

# Packages

No description provided by the author

# Functions

No description provided by the author
New create a spinner instance.
No description provided by the author

# Variables

Fail is the flag symbol after you called the Failed.
Frames is spinner's frame.
Success is the flag symbol after you called the Successed.

# Structs

Chrysanthemum represent a spinner instance.