yuml

package
v0.0.0-...-d623aaa Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIncompleteYuml = errors.New("Incomplete YUML tree")
)

YUML errors

Functions

This section is empty.

Types

type Attributes

type Attributes []xml.Attr

Attributes are YUML attributes (basically xml.Attr with some extra sugar)

type Child

type Child struct {
	Element  *Element
	Settings []xml.Attr
}

Child contains a YUML element and its parent-related attributes

type Element

type Element struct {
	Name       xml.Name
	Attributes Attributes
	Children   []Child
	Content    []byte
}

Element contains all the data about a YUML element

func ParseYUML

func ParseYUML(reader io.Reader) (*Element, error)

ParseYUML tries to read YUML code and parse it as such, returning the root element

func (Element) String

func (y Element) String() string

Jump to

Keyboard shortcuts

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