Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Html string `json:"html"`
HtmlOriginal string `json:"html_original"`
Text string `json:"text"`
TextOriginal string `json:"text_original"`
Category string `json:"category"`
Topics []EventPage `json:"topics"`
PrimaryTopic EventPage `json:"primary_topic"`
Sources []EventSource `json:"sources"`
PrimarySource EventSource `json:"primary_source"`
References []EventPage `json:"references"`
Date time.Time `json:"date"`
DateOriginal string `json:"date_original"`
}
type EventPage ¶
type EventPage struct {
Title string `json:"title"`
Uri string `json:"uri"`
ExternalUrl string `json:"external_url"`
}
func GetPrimaryTopic ¶
type EventSource ¶
type EventSource struct {
Title string `json:"title"`
Url string `json:"url"`
Domain string `json:"domain"`
}
func GetPrimarySource ¶
func GetPrimarySource(sources []EventSource) EventSource
Click to show internal directories.
Click to hide internal directories.