emit

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	// contains filtered or unexported fields
}

func NewEmitter

func NewEmitter(args []string) Emitter

func (*Emitter) Next

func (e *Emitter) Next() Event

type Event

type Event struct {
	Kind EventKind
	Data string
}

type EventKind

type EventKind uint8
const (
	EventKindDash EventKind = iota
	EventKindText
	EventKindEquals
	EventKindBreak
	EventKindEnd
)

func (EventKind) String

func (k EventKind) String() string

Jump to

Keyboard shortcuts

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