util

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 11 Imported by: 0 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

This section is empty.

Functions

func CopyMapStringString added in v0.1.12

func CopyMapStringString(m map[string]string) map[string]string

func FlattenEnvMap added in v0.1.31

func FlattenEnvMap(m map[string]string) []string

func InterfaceSlice

func InterfaceSlice(slice interface{}) []interface{}

func IsInteractive added in v0.1.45

func IsInteractive() bool

func IsTermDumb added in v0.1.45

func IsTermDumb() bool

func RegexValidator

func RegexValidator(regex *regexp.Regexp, msg string) func(interface{}) error

func StringArrayToSet added in v0.1.35

func StringArrayToSet(in []string) map[string]bool

Types

type CmdInfo added in v0.1.17

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

func NewCmdInfo added in v0.1.17

func NewCmdInfo(cmdStr, dir string, env []string) (*CmdInfo, error)

func (*CmdInfo) IsRunning added in v0.1.17

func (i *CmdInfo) IsRunning() bool

func (*CmdInfo) Run added in v0.1.17

func (i *CmdInfo) Run() error

func (*CmdInfo) Stderr added in v0.1.17

func (i *CmdInfo) Stderr() io.ReadCloser

func (*CmdInfo) Stdout added in v0.1.17

func (i *CmdInfo) Stdout() io.ReadCloser

func (*CmdInfo) Stop added in v0.1.17

func (i *CmdInfo) Stop() error

func (*CmdInfo) Wait added in v0.1.17

func (i *CmdInfo) Wait() error

func (*CmdInfo) WaitChannel added in v0.1.17

func (i *CmdInfo) WaitChannel() <-chan struct{}

Jump to

Keyboard shortcuts

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