utils

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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