util

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvMap added in v1.7.0

func GetEnvMap() map[string]string

GetEnvMap returns a map of the OS environment variables.

Types

type SpinnerConfig

type SpinnerConfig struct {
	Message string
	Spinner *spinner.Spinner
}

SpinnerConfig holds spinner configurations.

func Spin

func Spin(message string) SpinnerConfig

Spin starts the Spinner.

func (SpinnerConfig) Done

func (spin SpinnerConfig) Done()

Done completes the Spinner.

func (SpinnerConfig) Failed

func (spin SpinnerConfig) Failed(err error)

Failed completes the spinner with an error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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