cornell

package
v0.0.0-...-8dc1090 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: MIT Imports: 16 Imported by: 0

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

func GetTermByCode(code string) (TermInfo, error)

GetTermByCode returns the TermInfo struct for the term with the given code, or ErrBadTermCode if the term couldn't be found.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL