sparkle

package
v1.12.1-1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CdataString

type CdataString struct {
	Value string `xml:",cdata"`
}

CdataString for XML CDATA See issue: https://github.com/golang/go/issues/16198

type Channel

type Channel struct {
	XMLName     xml.Name `xml:"channel"`
	Title       string   `xml:"title"`
	Link        string   `xml:"link,omitempty"`
	Description string   `xml:"description,omitempty"`
	Language    string   `xml:"language"`
	Items       []Item
}

type Enclosure

type Enclosure struct {
	XMLName                   xml.Name `xml:enclosure`
	SparkleShortVersionString string   `xml:"sparkle:shortVersionString,attr"`
	SparkleVersion            string   `xml:"sparkle:version,attr"`
	Type                      string   `xml:"type,attr"`
	URL                       string   `xml:"url,attr"`
}

type Item

type Item struct {
	XMLName                 xml.Name    `xml:"item"`
	Title                   string      `xml:"title"`
	SparkleReleaseNotesLink string      `xml:"sparkle:releaseNotesLink,omitempty"`
	Description             CdataString `xml:"description,omitempty"`
	PubDate                 string      `xml:"pubDate"`
	Enclosure               Enclosure   `xml:"enclosure"`
}

type Items

type Items []Item

type Sparkle

type Sparkle struct {
	XMLName      xml.Name `xml:"rss"`
	Version      string   `xml:"version,attr"`
	XMLNSSparkle string   `xml:"xmlns:sparkle,attr"`
	XMLNSDC      string   `xml:"xmlns:dc,attr"`
	Channels     []Channel
}

func (*Sparkle) String

func (s *Sparkle) String() string

Jump to

Keyboard shortcuts

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