util

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 10 Imported by: 0

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 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