system

package
v0.0.0-...-f3071e7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config go_up.GoUp

Functions

func MainEventLoop

func MainEventLoop(events EventChannel) (exitCode int)

Types

type Event

type Event struct {
	Stdout      string
	Stderr      string
	Err         error
	ErrorOnExit bool
}

type EventChannel

type EventChannel chan Event
var MessageBus EventChannel

func NewEventChannel

func NewEventChannel() EventChannel

func (EventChannel) Error

func (ec EventChannel) Error(msg string)

func (EventChannel) ExitWithError

func (ec EventChannel) ExitWithError(err error)

func (EventChannel) ExitWithErrorMessage

func (ec EventChannel) ExitWithErrorMessage(msg string, err error)

func (EventChannel) Message

func (ec EventChannel) Message(msg string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL