feed

package
v0.0.0-...-6637788 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	Stories []*Story
}

func (*Feed) UnmarshalJSON

func (f *Feed) UnmarshalJSON(data []byte) error

type Image

type Image struct {
	Credit, Caption, URL string
}

type Story

type Story struct {
	ID           string    `toml:"internal-id"`
	ImageCredit  string    `toml:"image-credit"`
	ImageCaption string    `toml:"image-description"`
	ImageURL     string    `toml:"image"`
	Slug         string    `toml:"slug"`
	PubDate      time.Time `toml:"published"`
	Budget       string    `toml:"internal-budget"`
	Hed          string    `toml:"title"`
	Subhead      string    `toml:"subtitle"`
	Summary      string    `toml:"description"`
	Blurb        string    `toml:"dek"`
	Authors      []string  `toml:"authors"`
	Body         string    `toml:"-"`
	LinkTitle    string    `toml:"linktitle"`
}

func (*Story) String

func (story *Story) String() string

Jump to

Keyboard shortcuts

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