// GetTermByCode returns the TermInfo struct for the term with the given code, or ErrBadTermCode if the term couldn't be found.
GetTermByCode returns the TermInfo struct for the term with the given code, or ErrBadTermCode if the term couldn't be found.
// GetTermByCode returns the TermInfo struct for the term with the given code or ErrBadTermCode if the term couldn ' t be found .
func GetTermByCode(code string) (TermInfo, error) {
	if code == "FA20" {
		return TermInfo{
			Code:   "FA20",
			CSCode: "2020fa",
		}, nil
	} else if code == "WI21" {
		return TermInfo{
			Code:   "WI21",
			CSCode: "2021wi", 
		}, nil
	} else if code == "SP21" {
		return TermInfo{
			Code:   "SP21",
			CSCode: "2021sp",
		}, nil
	} else if code == "FA21" {
		return TermInfo{
			Code:   "FA21",
			CSCode: "2021fa",
		}, nil
	}
	return TermInfo{}, ErrBadTermCode
}
func GetTermByCode ( code string ) ( TermInfo , error ) { if code == " " { return TermInfo { Code : " " , CSCode : " " , } , nil } else if code == " " { return TermInfo { Code : " " , CSCode : " " , } , nil } else if code == " " { return TermInfo { Code : " " , CSCode : " " , } , nil } else if code == " " { return TermInfo { Code : " " , CSCode : " " , } , nil } return TermInfo { } , ErrBadTermCode }
GetTermByCode returns the TermInfo struct for the term with the given code, or ErrBadTermCode if the term couldn't be found.
GetTermByCode returns the TermInfo struct for the term with the given code or ErrBadTermCode if the term couldn ' t be found .
// the CS department doesn't offer winter courses, but if they did, this is probably what the code would be