utils

package
v0.0.0-...-74e1113 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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