caramelbotrmp

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareBestByCourse

func CompareBestByCourse(rmp1, rmp2 RMPResult) string

func CompareDifficulty

func CompareDifficulty(rmp1, rmp2 RMPResult) string

func CompareOverallRating

func CompareOverallRating(rmp1, rmp2 RMPResult) string

func CompareWouldTakeAgain

func CompareWouldTakeAgain(rmp1, rmp2 RMPResult) string

Types

type Professor

type Professor struct {
	TDept            string
	TSid             string
	Institution_name string
	TFname           string
	TMiddleName      string
	TLname           string
	TId              int
	TNumRatings      int
	Rating_class     string
	ContentType      string
	CategoryType     string
	Overall_Rating   string
}

type ProfessorQueryResult

type ProfessorQueryResult struct {
	Professors         []Professor
	SearchResultsTotal int
	Remaining          int
	Type               string
}

type RMPResult

type RMPResult struct {
	// contains filtered or unexported fields
}

func QueryProfessor

func QueryProfessor(professor string) (RMPResult, error)

type Rating

type Rating struct {
	Attendence        string
	ClarityColor      string
	EasyColor         string
	HelpColor         string
	HelpCount         int
	Id                int
	NotHelpCount      int
	OnlineClass       string
	Quality           string
	RClarity          int
	RClass            string
	RComments         string
	RDate             string
	REasy             float64
	REasyString       string
	RErrorMsg         string
	RHelpful          int
	RInterest         string
	ROverall          float64
	ROverallString    string
	RStatus           int
	RTextBookUse      string
	RTimestamp        int
	RWouldTakeAgain   string
	SId               int
	TakenForCredit    string
	Teacher           string
	TeacherGrade      string
	TeacherRatingRags []string
	UnUsefulGrouping  string
	UsefulGrouping    string
}

type RatingQueryResult

type RatingQueryResult struct {
	Ratings   []Rating
	Remaining int
}

Jump to

Keyboard shortcuts

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