ofmx

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFeature

func NewFeature(name string, skipUndocumented bool) (types.Feature, error)

func UpdateReferences

func UpdateReferences(fmap types.FeatureMap)

Types

type Decoder

type Decoder struct {
	*xml.Decoder
	DecoderConfig
}

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (*Decoder) Decode

func (d *Decoder) Decode(v *OfmxSnapshot) error

type DecoderConfig

type DecoderConfig struct {
	IgnoreUndocumented bool
}

type FeatureList

type FeatureList []types.Feature

func (FeatureList) MarshalXML

func (s FeatureList) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*FeatureList) UnmarshalXML

func (s *FeatureList) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type OfmxSnapshot

type OfmxSnapshot struct {
	XMLName                   string      `xml:"OFMX-Snapshot"`
	Xsi                       string      `xml:"xsi,attr"`
	NoNamespaceSchemaLocation string      `xml:"noNamespaceSchemaLocation,attr"`
	Version                   string      `xml:"version,attr"`
	Origin                    string      `xml:"origin,attr"`
	Namespace                 string      `xml:"namespace,attr"`
	Created                   string      `xml:"created,attr"`
	Effective                 string      `xml:"effective,attr"`
	Features                  FeatureList `xml:",any"`
	// contains filtered or unexported fields
}

type ParseError

type ParseError struct {
	Errors  []error
	Message string
}

func (ParseError) Error

func (e ParseError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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