Documentation
¶
Index ¶
- Constants
- func ExecCmdCtxWithAttr(ctx context.Context, name string, args ...string) *exec.Cmd
- func ExecCmdRunOutputs(ecmd *exec.Cmd) (sout []byte, serr []byte, _ error)
- func ExecName(name string) string
- func FilepathHasDirPrefix(s, prefix string) bool
- func FilepathSplitAt(s string, n int) string
- func GoExec() string
- func HomeEnvVar() string
- func KillExecCmd(cmd *exec.Cmd) error
- func SetupExecCmdSysProcAttr(cmd *exec.Cmd)
- func ShellRunArgs(args ...string) []string
- type TmpFiles
- func (tf *TmpFiles) MkdirInTmp(path string) (string, error)
- func (tf *TmpFiles) MkdirInTmpOrPanic(path string) string
- func (tf *TmpFiles) RemoveAll() error
- func (tf *TmpFiles) WriteFileInTmp(path string, src []byte) (string, error)
- func (tf *TmpFiles) WriteFileInTmp2OrPanic(path string, src string) string
- func (tf *TmpFiles) WriteFileInTmpOrPanic(path string, src []byte) string
Constants ¶
View Source
const EscapeRune = '\\'
Variables ¶
This section is empty.
Functions ¶
func ExecCmdCtxWithAttr ¶
func FilepathHasDirPrefix ¶
func FilepathSplitAt ¶
Result does not start with separator.
func HomeEnvVar ¶
func HomeEnvVar() string
func KillExecCmd ¶
func SetupExecCmdSysProcAttr ¶
func ShellRunArgs ¶
Types ¶
type TmpFiles ¶
type TmpFiles struct {
Dir string
}
func NewTmpFiles ¶
func (*TmpFiles) MkdirInTmpOrPanic ¶
func (*TmpFiles) WriteFileInTmp ¶
func (*TmpFiles) WriteFileInTmp2OrPanic ¶
Click to show internal directories.
Click to hide internal directories.