internal

package
v0.0.0-...-201fd47 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAge

func GetAge(currentTime time.Time, reference time.Time) string

Types

type Channel

type Channel struct {
	Title string `xml:"title"`
	Link  string `xml:"link"`
	Items []Item `xml:"item"`
}

type Feed

type Feed struct {
	Title string
	Items []FeedItem
}

func ParseFeed

func ParseFeed(body string) (Feed, error)

type FeedItem

type FeedItem struct {
	Title     string
	Link      string
	Published time.Time
}

type Item

type Item struct {
	Title   string `xml:"title"`
	Link    string `xml:"link"`
	PubDate string `xml:"pubDate"`
}

type Rss

type Rss struct {
	Channel Channel `xml:"channel"`
}

Jump to

Keyboard shortcuts

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