appstream

package
v0.0.0-...-4f60042 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	XMLName         xml.Name `xml:"component"`
	Text            string   `xml:",chardata"`
	Type            string   `xml:"type,attr"`
	ID              string   `xml:"id"`
	MetadataLicense string   `xml:"metadata_license"`
	ProjectLicense  string   `xml:"project_license"`
	Name            string   `xml:"name"`
	URL             struct {
		Text string `xml:",chardata"`
		Type string `xml:"type,attr"`
	} `xml:"url"`
	Summary     string `xml:"summary"`
	Description struct {
		Text string `xml:",chardata"`
		P    string `xml:"p"`
	} `xml:"description"`
	Screenshots struct {
		Text       string `xml:",chardata"`
		Screenshot struct {
			Text    string `xml:",chardata"`
			Type    string `xml:"type,attr"`
			Image   string `xml:"image"`
			Caption string `xml:"caption"`
		} `xml:"screenshot"`
	} `xml:"screenshots"`
}

struct generated with https://www.onlinetool.io/xmltogo/

func Parse

func Parse(r io.Reader) (*Component, error)

Jump to

Keyboard shortcuts

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