school

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Course

type Course interface {
	SeatsOpen() int
	Name() string
	ID() int
}

Course is an interface that defines a generic course object for school schedules.

type Schedule

type Schedule interface {
	Courses() []Course
	Get(id int) Course
	Len() int
}

Schedule is an interface that represents a school schedule.

type School

type School int

School is a type that identifies a school

const (
	// UCBerkeley is the school type for UC Berkeley.
	UCBerkeley School = iota
	// UCMerced is the school type of UC Merced
	UCMerced
)

func FromName

func FromName(schoolname string) School

FromName returns a school code based on the name of the school. Returns -1 if the name is unknown.

func (School) String

func (i School) String() string

Directories

Path Synopsis
ucberkeley
btime
Package btime is a library for the berkeleytime api.
Package btime is a library for the berkeleytime api.
ucmerced
ucm

Jump to

Keyboard shortcuts

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