Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GodotPilot ¶
type GodotPilot struct {
Cmd *exec.Cmd
Chans *StandardChans
Pipes *StandardPipes
OnStdOut func(line string)
OnStdErr func(line string)
// contains filtered or unexported fields
}
GodotPilot manages the execution of a Godot executable and handles its I/O streams.
func NewGodotPilot ¶
func NewGodotPilot(onStdOut func(line string), onStdErr func(line string), executablePath string, arguments ...string) *GodotPilot
NewGodotPilot initializes and returns a new GodotPilot instance.
func (*GodotPilot) Start ¶
func (gp *GodotPilot) Start() error
Start begins the execution of the Godot executable and starts goroutines to handle its I/O streams.
type StandardChans ¶
StandardChans holds channels for communication between the GodotPilot and the Go application.
func NewStandardChans ¶
func NewStandardChans() *StandardChans
NewStandardChans initializes and returns a new StandardChans instance.
type StandardPipes ¶
type StandardPipes struct {
In io.WriteCloser
Out io.ReadCloser
Err io.ReadCloser
}
StandardPipes holds the standard input, output, and error pipes.
Click to show internal directories.
Click to hide internal directories.