Documentation ¶
Index ¶
- func E2Txt() string
- func ELang() string
- func Ecl() string
- func EclErrorTips(code EclError) string
- type E2TxtCmd
- type EclCmd
- type EclError
- type 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
- type LogReader
- type ReportFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EclErrorTips ¶
Types ¶
type E2TxtCmd ¶
type E2TxtCmd struct {
// contains filtered or unexported fields
}
func NewE2TxtCmd ¶
func (*E2TxtCmd) OnError ¶
func (c *E2TxtCmd) OnError(onError ReportFunc)
func (*E2TxtCmd) OnLog ¶
func (c *E2TxtCmd) OnLog(onLog ReportFunc)
func (*E2TxtCmd) OnOutDir ¶
func (c *E2TxtCmd) OnOutDir(onOutDir ReportFunc)
type EclCmd ¶
type EclCmd struct {
// contains filtered or unexported fields
}
func (*EclCmd) OnError ¶
func (c *EclCmd) OnError(onError ReportFunc)
func (*EclCmd) OnLog ¶
func (c *EclCmd) OnLog(onLog ReportFunc)
type EclError ¶
type EclError int
const ( EclErrorOk EclError = -iota EclErrorUnknown EclErrorParam EclErrorFileNotFound EclErrorFileInvalid EclErrorCompile EclErrorInvalidCompileType EclErrorECannotStart EclErrorCanNotGetMenu EclErrorShutdown EclErrorStatic EclErrorMakeLinkIni EclErrorBmInfo EclErrorBmCompile EclErrorPassword EclErrorEC EclErrorELib EclErrorStartTimeout EclErrorCompileTimeout EclErrorNotSupportEPkg )
const EclErrorSuccess EclError = 1
type Exec ¶
type Exec struct {
// contains filtered or unexported fields
}
func (*Exec) ForwardStdin ¶
func (c *Exec) ForwardStdin()
func (*Exec) OnStderr ¶
func (c *Exec) OnStderr(onError ReportFunc)
func (*Exec) OnStdout ¶
func (c *Exec) OnStdout(onLog ReportFunc)
func (*Exec) SetLogReader ¶
type LogReader ¶
var ( ReadLogByLine LogReader = func(reader *bufio.Reader) (bytes []byte, err error) { bytes, _, err = reader.ReadLine() return } ReadLogRealTime LogReader = func(reader *bufio.Reader) (bytes []byte, err error) { bytes = make([]byte, 1024) size := 0 size, err = reader.Read(bytes) bytes = bytes[:size] return } )
type ReportFunc ¶
type ReportFunc func(string)
Click to show internal directories.
Click to hide internal directories.