Documentation
¶
Index ¶
Constants ¶
const OpenMensaRSSGenerator string = "OpenMensa RSS Generator"
Variables ¶
var RSSMetadata = struct { Description string Author feeds.Author Link feeds.Link Image feeds.Image }{ Description: "Automated RSS feed using OpenMensa", Author: feeds.Author{Name: OpenMensaRSSGenerator, Email: "johann.schicho@tuwien.ac.at"}, Link: feeds.Link{Href: "https://schicho.github.io/openmensarss/"}, Image: feeds.Image{Url: "https://schicho.github.io/openmensarss/omrss.gif", Title: OpenMensaRSSGenerator, Link: "https://schicho.github.io/openmensarss/"}, }
RSSMetadata allows setting of general metadata for the feeds generated using this library's functions. All fields can be modified here before generation, or of course after generation on a per feed basis.
Functions ¶
func FeedForCanteen ¶
FeedForCanteen creates a feed of the canteen menu on a certain day. The Canteen struct specifies the canteen from OpenMensa. The day is selected by passing a time stamp.
Throws an error if the OpenMensa API does not provide data for the specified input.
func FeedForCanteenID ¶
FeedForCanteenID creates a feed of the canteen menu on a certain day. The id specifies the canteen from OpenMensa. The day is selected by passing a time stamp.
Throws an error if the OpenMensa API does not provide data for the specified input.
Types ¶
This section is empty.
