pkg

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Spinner01 spinnerTyp = iota + 1
)

Variables

View Source
var OpenBrowser = browser.OpenURL

Functions

func FormatNum added in v1.9.0

func FormatNum(num int, bitSize int) string

FormatNum is a function to format number, output string e.g. FormatNum(123, 3) => "123", FormatNum(123, 5) => "00123" if num is over bitSize, return original number string.

func Run

func Run(cmd string) error

Run .

func RunOutput

func RunOutput(cmd string, rw io.ReadWriter) error

RunOutput .

Types

type ISpinner added in v1.6.8

type ISpinner interface {
	// Start spin
	Start()
	// Stop spin
	Stop()
}

ISpinner spinner interface to allow more than one of implementations.

func NewSpinner added in v1.6.8

func NewSpinner(typ spinnerTyp) ISpinner

Jump to

Keyboard shortcuts

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