util

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 10 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 InterfaceSlice

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

func MergeMaps added in v0.1.13

func MergeMaps(a ...map[string]interface{}) map[string]interface{}

func MergeStringMaps added in v0.1.13

func MergeStringMaps(a ...map[string]string) map[string]string

func RegexValidator

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

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