grades

package
v0.0.0-...-48788f6 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GradeTest     = GradeType("Test")
	GradeHomework = GradeType("Homework")
	GradeQuiz     = GradeType("Quiz")
)

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers()

Types

type Grade

type Grade struct {
	Title string
	Type  GradeType
	Score float32
}

type GradeType

type GradeType string

type Student

type Student struct {
	ID        int
	FirstName string
	LastName  string
	Grades    []Grade
}

func (Student) Average

func (s Student) Average() float32

type Students

type Students []Student

func (Students) GetByID

func (s Students) GetByID(id int) (*Student, error)

Jump to

Keyboard shortcuts

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