datafiles

package
v0.0.0-...-01cf3de Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 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 DataFile

type DataFile struct {
	XMLName      xml.Name `xml:"data"`
	Flavor       string   `xml:"flavor,attr"`
	Modules      []Module
	Dependencies []Dependency
}

func NewDataFile

func NewDataFile(flavorName string) *DataFile

func (*DataFile) ToXML

func (dataFile *DataFile) ToXML() []byte

type Dependency

type Dependency struct {
	XMLName xml.Name `xml:"dependency"`
	From    string   `xml:"from,attr"`
	To      string   `xml:"to,attr"`
	Type    string   `xml:"type,attr"`
}

type Module

type Module struct {
	XMLName xml.Name `xml:"module"`
	Name    string   `xml:"name,attr"`
	Id      string   `xml:"id,attr"`
	Type    string   `xml:"type,attr"`
}

Jump to

Keyboard shortcuts

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