ina

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UrlMrss string
}

type MRSS

type MRSS struct {
	XMLName xml.Name `xml:"rss"`
	Channel struct {
		ID          string `xml:"id"`
		Title       string `xml:"title"`
		Description string `xml:"description"`
		Link        string `xml:"link"`
		PubDate     string `xml:"pubDate"`
		Category    string `xml:"category"`
		Item        struct {
			Content struct {
				Hq struct {
					URL string `xml:"url,attr"`
				} `xml:"hq"`
				Mq struct {
					URL string `xml:"url,attr"`
				} `xml:"mq"`
				Bq struct {
					URL string `xml:"url,attr"`
				} `xml:"bq"`
				Thumbnail []struct {
					URL    string `xml:"url,attr"`
					Height string `xml:"height,attr"`
					Width  string `xml:"width,attr"`
				} `xml:"thumbnail"`
			} `xml:"content"`
		} `xml:"item"`
	} `xml:"channel"`
}

func MediaNew

func MediaNew(u string) (MRSS, error)

Jump to

Keyboard shortcuts

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