xml

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package xml xml

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Loc         string `xml:"loc" json:"loc"`
	Title       string `xml:"title,omitempty" json:"title,omitempty"`
	Caption     string `xml:"caption,omitempty" json:"caption,omitempty"`
	GeoLocation string `xml:"geo_location,omitempty" json:"geo_location,omitempty"`
	License     string `xml:"license,omitempty" json:"license,omitempty"`
}

Image image struct

type News added in v0.0.5

type News struct {
	Publication     Publication `xml:"publication,omitempty" json:"publication,omitempty"`
	PublicationDate string      `xml:"publication_date,omitempty" json:"publication_date,omitempty"`
	Title           string      `xml:"title,omitempty" json:"title,omitempty"`
	Genres          string      `xml:"genres,omitempty" json:"genres,omitempty"`
	Keywords        string      `xml:"keywords,omitempty" json:"keywords,omitempty"`
	Access          string      `xml:"access,omitempty" json:"access,omitempty"`
	StockTickers    string      `xml:"stock_tickers,omitempty" json:"stock_tickers,omitempty"`
}

News news struct

type Publication added in v0.0.5

type Publication struct {
	Name     string `xml:"name,omitempty" json:"name,omitempty"`
	Language string `xml:"language,omitempty" json:"language,omitempty"`
}

Publication publication struct

type TrimmingTokenReader

type TrimmingTokenReader struct {
	// contains filtered or unexported fields
}

TrimmingTokenReader Trimming TokenReader

func (TrimmingTokenReader) Token

func (tr TrimmingTokenReader) Token() (xml.Token, error)

Token Trimming token

type URL

type URL struct {
	Loc        string  `xml:"loc" json:"loc"`
	LastMod    string  `xml:"lastmod,omitempty" json:"lastmod,omitempty"`
	ChangeFreq string  `xml:"changefreq,omitempty" json:"changefreq,omitempty"`
	Priority   float32 `xml:"priority,omitempty" json:"priority,omitempty"`
	Image      []Image `xml:"image,omitempty" json:"image,omitempty"`
	Video      []Video `xml:"video,omitempty" json:"video,omitempty"`
	News       []News  `xml:"news,omitempty" json:"news,omitempty"`
}

URL url struct

type URLSet

type URLSet struct {
	XMLName xml.Name `xml:"urlset"`
	XMLNs   string   `xml:"xmlns,attr"`
	URL     []URL    `xml:"url"`
}

URLSet urlSet struct

func UnmarshalXMLP

func UnmarshalXMLP(rawXML []byte, pattern string) (*URLSet, error)

UnmarshalXMLP unmarshal xml and filter by pattern

type Video added in v0.0.5

type Video struct {
	ThumbnailLoc         string   `xml:"thumbnail_location" json:"thumbnail_location"`
	Title                string   `xml:"title,omitempty" json:"title,omitempty"`
	Description          string   `xml:"description,omitempty" json:"description,omitempty"`
	ContentLoc           string   `xml:"content_loc,omitempty" json:"content_loc,omitempty"`
	PlayerLoc            string   `xml:"player_loc,omitempty" json:"player_loc,omitempty"`
	Duration             int      `xml:"duration,omitempty" json:"duration,omitempty"`
	ExpirationDate       string   `xml:"expiration_date,omitempty" json:"expiration_date,omitempty"`
	Rating               float32  `xml:"rating,omitempty" json:"rating,omitempty"`
	ViewCount            int64    `xml:"view_count,omitempty" json:"view_count,omitempty"`
	PublicationDate      string   `xml:"publication_date,omitempty" json:"publication_date,omitempty"`
	FamilyFriendly       string   `xml:"family_friendly,omitempty" json:"family_friendly,omitempty"`
	Restriction          string   `xml:"restriction,omitempty" json:"restriction,omitempty"`
	Platform             string   `xml:"platform,omitempty" json:"platform,omitempty"`
	Price                float32  `xml:"price,omitempty" json:"price,omitempty"`
	RequiresSubscription string   `xml:"requires_subscription,omitempty" json:"requires_subscription,omitempty"`
	Uploader             string   `xml:"uploader,omitempty" json:"uploader,omitempty"`
	Live                 string   `xml:"live,omitempty" json:"live,omitempty"`
	Tag                  []string `xml:"tag,omitempty" json:"tag,omitempty"`
	Category             string   `xml:"category,omitempty" json:"category,omitempty"`
}

Video video struct

Jump to

Keyboard shortcuts

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