utils

package
v0.0.0-...-996f556 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Quiet = false
)

Functions

func CacheDir

func CacheDir() string

func ConstructVersion

func ConstructVersion(epoch, version, release string) string

func Exists

func Exists(path string) (bool, error)

func FileWalk

func FileWalk(root string, walkFn func(r io.Reader, path string) error) error

func MustTimeParse

func MustTimeParse(value string) *time.Time

func UnmarshalJSONFile

func UnmarshalJSONFile(v interface{}, fileName string) error

Types

type ProgressBar

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

TODO: Expose an interface for progressbar

func PbStartNew

func PbStartNew(total int) *ProgressBar

func (*ProgressBar) Finish

func (p *ProgressBar) Finish()

func (*ProgressBar) Increment

func (p *ProgressBar) Increment()

type Spinner

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

func NewSpinner

func NewSpinner(suffix string) *Spinner

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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