Versions in this module Expand all Collapse all v1 v1.0.0 Aug 3, 2022 Changes in this version + func E2Txt() string + func ELang() string + func Ecl() string + func EclErrorTips(code EclError) string + type E2TxtCmd struct + func NewE2TxtCmd(path string, args ...string) *E2TxtCmd + func (c *E2TxtCmd) Exec() + func (c *E2TxtCmd) OnError(onError ReportFunc) + func (c *E2TxtCmd) OnExit(onExit ExitFunc) + func (c *E2TxtCmd) OnLog(onLog ReportFunc) + func (c *E2TxtCmd) OnOutDir(onOutDir ReportFunc) + type EclCmd struct + func NewEclCmd(path string, args ...string) *EclCmd + func (c *EclCmd) Exec() + func (c *EclCmd) OnError(onError ReportFunc) + func (c *EclCmd) OnExit(onExit ExitFunc) + func (c *EclCmd) OnLog(onLog ReportFunc) + func (c *EclCmd) Wait() + type EclError int + const EclErrorBmCompile + const EclErrorBmInfo + const EclErrorCanNotGetMenu + const EclErrorCompile + const EclErrorCompileTimeout + const EclErrorEC + const EclErrorECannotStart + const EclErrorELib + const EclErrorFileInvalid + const EclErrorFileNotFound + const EclErrorInvalidCompileType + const EclErrorMakeLinkIni + const EclErrorNotSupportEPkg + const EclErrorOk + const EclErrorParam + const EclErrorPassword + const EclErrorShutdown + const EclErrorStartTimeout + const EclErrorStatic + const EclErrorSuccess + const EclErrorUnknown + func (e EclError) IsOk() bool + type Exec struct + func NewExec(path string, args ...string) *Exec + func (c *Exec) Exec() + func (c *Exec) ForwardStdin() + func (c *Exec) LoadEnv(env map[string]string) + func (c *Exec) OnExit(onExit ExitFunc) + func (c *Exec) OnStderr(onError ReportFunc) + func (c *Exec) OnStdout(onLog ReportFunc) + func (c *Exec) SetGbk(gbk bool) + func (c *Exec) SetLogReader(logReader LogReader) + func (c *Exec) Wait() + type ExitFunc func(code int) + type LogReader func(reader *bufio.Reader) (bytes []byte, err error) + var ReadLogByLine LogReader = func(reader *bufio.Reader) (bytes []byte, err error) { ... } + var ReadLogRealTime LogReader = func(reader *bufio.Reader) (bytes []byte, err error) { ... } + type ReportFunc func(string)