Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadTermCode = errors.New("cornell: unknown term code")
ErrBadTermCode is reported when the given term code doesn't exist.
View Source
var ErrUnexpectedPageStructure = errors.New("cornell: Unexpected page structure")
Functions ¶
func CreateSchool ¶
func CreateSchool() *school
Types ¶
type TermInfo ¶
type TermInfo struct { Code string //contains the current term code CSCode string //contains the term code used by the CS department }
A TermInfo struct contains information about an academic term.
func GetCurrentTerm ¶
func GetCurrentTerm() TermInfo
GetCurrentTerm returns a TermInfo struct for the current academic term.
func GetTermByCode ¶
GetTermByCode returns the TermInfo struct for the term with the given code, or ErrBadTermCode if the term couldn't be found.
Click to show internal directories.
Click to hide internal directories.