Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetYouTubeLink ¶
GetYouTubeLink returns a link for the first video found
Types ¶
type RadioStation ¶
type RadioStation struct {
Id int `json:"id"`
Abbreviation string `json:"abbreviation"`
Name string `json:"name"`
MinDate time.Time `json:"min_date"`
MaxDate time.Time `json:"max_date"`
}
func GetRadioStations ¶
func GetRadioStations(db *sql.DB) ([]RadioStation, error)
GetRadioStations fetches all radio stations from the db
type YouTubeResponse ¶
type YouTubeResponse struct {
Items []struct {
ID struct {
VideoID string `json:"videoId"`
} `json:"id"`
} `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.