package
Version:
v0.0.0-...-208db83
Opens a new window with list of versions in this module.
Published: Feb 4, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Today is a function that can be used to
run FilterDay with to filter today's day
in the menu.
Course defines a meal type with a description.
NewCourse creates a new course.
String returns a string representation of this course.
Day represents the part of a menu on a particular da.
NewDay creates a new day.
Copy returns the name of this day.
Today returns true if this day is todays date.
Translate this days name to english.
Weekday returns the name of this day.
GetMenu is the complete collection of courses
over a week.
NewMenu constructs a menu consisting of the given days.
Count returns the number of days in this menu.
FilterDay runs the predicate for each day in the menu
and keeps only those that returns true on the predicate
function.
func (menu *Menu) Render()
Render the menu to its output.
SetOutput changes the default output of os.Stdout
to o instead.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.