emitter

package
v0.0.0-...-831a7e0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmitDocumentContentState emitterState // expect the content of a document.

)

The emitter states.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

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

func New

func New(w io.Writer) *Emitter

func (*Emitter) Emit

func (e *Emitter) Emit(event *yamlh.Event, final bool) error

Emit an event.

func (*Emitter) SetIndent

func (e *Emitter) SetIndent(spaces int)

Jump to

Keyboard shortcuts

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