Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 672 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 672 Bytes

UCSC Dining Go Library

GoDoc

Package ucscdining implements a wrapper to retrieve UCSC dining hall menus on the web.

This library is reverse engineered from observing UCSC dining's nutrition site, available at http://nutrition.sa.ucsc.edu/.

The menus are exposed fluently. To get the current menu at Porter:

menu, err := PorterKresge.GetMenu()

Or to get the menu on some other date:

t := time.Parse("01/02/2006", "01/05/2018")
menu, err := CollegesNineTen.On(t).GetMenu()

The library does not yet parse the result from UCSC.