schedule

package
v0.0.0-...-4f39408 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWeekDay

func GetWeekDay(date string) string

Types

type Groups

type Groups struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
}

type Lecture

type Lecture struct {
	ID         int    `json:"id"`
	DateEvent  string `json:"dateEvent"`
	StartTime  string `json:"startTime"`
	EndTime    string `json:"endTime"`
	Discipline struct {
		ID    int64  `json:"id"`
		Title string `json:"title"`
	} `json:"discipline"`
	Groups []Groups `json:"groups"`
	Build  struct {
		ID    int64  `json:"id"`
		Title string `json:"title"`
	} `json:"build"`
	Auditory struct {
		ID    int64  `json:"id"`
		Title string `json:"title"`
	} `json:"auditory"`
	Lecturers []struct {
		ID         int64  `json:"id"`
		LastName   string `json:"lastName"`
		FirstName  string `json:"firstName"`
		MiddleName string `json:"middleName"`
		ShortName  string `json:"shortName"`
		Fio        string `json:"fio"`
	} `json:"lecturers"`
	Abbrlessontype string      `json:"abbrlessontype"`
	Lessontype     string      `json:"lessontype"`
	Week           int         `json:"week"`
	Weekday        int         `json:"weekday"`
	WeekType       string      `json:"weekType"`
	OnlineEvent    interface{} `json:"onlineEvent"`
	Online         int         `json:"online"`
}

type Schedule

type Schedule struct {
	Data []Lecture
	// contains filtered or unexported fields
}

func New

func New(data []Lecture) *Schedule

func (*Schedule) Render

func (s *Schedule) Render() string

Jump to

Keyboard shortcuts

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