uastyml

package
v2.16.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(n nodes.Node) ([]byte, error)

func Unmarshal

func Unmarshal(data []byte) (nodes.Node, error)

Types

type Encoder

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

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

func (*Encoder) Encode

func (enc *Encoder) Encode(n nodes.Node) error

func (*Encoder) ForceRoles

func (enc *Encoder) ForceRoles(enable bool)

ForceRoles will force an output of Unannotated roles fiend for nodes that don't have roles.

Jump to

Keyboard shortcuts

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