MCPcopy Create free account
hub / github.com/goinaction/code / Feed

Struct Feed

chapter2/sample/search/feed.go:11–15  ·  view source on GitHub ↗

Feed contains information we need to process a feed.

Source from the content-addressed store, hash-verified

9
10// Feed contains information we need to process a feed.
11type Feed struct {
12 Name string `json:"site"`
13 URI string `json:"link"`
14 Type string `json:"type"`
15}
16
17// RetrieveFeeds reads and unmarshals the feed data file.
18func RetrieveFeeds() ([]*Feed, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected