nointro

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 1 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:"datafile"`
	Headers []Header `xml:"header"`
	Games   []Game   `xml:"game"`
}

func Load

func Load(src []byte) (Datafile, error)

type Game

type Game struct {
	XMLName     xml.Name `xml:"game"`
	Name        string   `xml:"name,attr"`
	Description string   `xml:"description"`
	Roms        []Rom    `xml:"rom"`
}
type Header struct {
	XMLName     xml.Name `xml:"header"`
	Name        string   `xml:"name"`
	Description string   `xml:"description"`
	Version     string   `xml:"version"`
	Date        string   `xml:"date"`
	Author      string   `xml:"author"`
	URL         string   `xml:"url"`
}

type Release

type Release struct {
	XMLName xml.Name `xml:"release"`
	Name    string   `xml:"name,attr"`
	Region  string   `xml:"region,attr"`
}

type Rom

type Rom struct {
	XMLName xml.Name `xml:"rom"`
	Name    string   `xml:"name,attr"`
	Size    int      `xml:"size,attr"`
	CRC     string   `xml:"crc,attr"`
	MD5     string   `xml:"md5,attr"`
	SHA1    string   `xml:"sha1,attr"`
}

Jump to

Keyboard shortcuts

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