jsonfeed

package module
Version: v0.0.0-...-1cc08fb Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

README

jsonfeed

Go Report Card Build Status

JSONFeed support for Go

Documentation

Index

Constants

View Source
const CurrentVersion = "https://jsonfeed.org/version/1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	URL               string `json:"url"`
	MIMEType          string `json:"mime_type"`
	Title             string `json:"title"`
	SizeInBytes       int64  `json:"size_in_bytes"`
	DurationInSeconds int64  `json:"duration_in_seconds"`
}

type Author

type Author struct {
	Name   string `json:"name"`
	URL    string `json:"url"`
	Avatar string `json:"avatar"`
}

type Feed

type Feed struct {
	Version     string `json:"version"`
	Title       string `json:"title"`
	HomePageURL string `json:"home_page_url"`
	FeedURL     string `json:"feed_url"`
	Description string `json:"description"`
	UserComment string `json:"user_comment"`
	NextURL     string `json:"next_url"`
	Icon        string `json:"icon"`
	Favicon     string `json:"favicon"`
	Author      Author `json:"author"`
	Expired     bool   `json:"expired"`
	Hubs        []Hub  `json:"hubs"`
	Items       []Item `json:"items"`
}

func Parse

func Parse(r io.Reader) (Feed, error)

type Hub

type Hub struct {
	Type string `json:"type"`
	URL  string `json:"url"`
}

type Item

type Item struct {
	ID            string    `json:"id"`
	URL           string    `json:"url"`
	ExternalURL   string    `json:"external_url"`
	Title         string    `json:"title"`
	ContentHTML   string    `json:"content_html"`
	ContentText   string    `json:"content_text"`
	Summary       string    `json:"summary"`
	Image         string    `json:"image"`
	BannerImage   string    `json:"banner_image"`
	DatePublished time.Time `json:"date_published"`
	DateModified  time.Time `json:"date_modified"`
	Author        Author    `json:"author"`
	Tags          []string  `json:"tags"`
}

Source Files

Jump to

Keyboard shortcuts

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