subsplease

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseWeekday

func ParseWeekday(name string) (time.Weekday, bool)

Types

type Release

type Release struct {
	Title string    `json:"title"`
	Time  time.Time `json:"time"`
}

func (*Release) String

func (r *Release) String() string

type Releases

type Releases []*Release

func (Releases) Len

func (r Releases) Len() int

func (Releases) Less

func (r Releases) Less(i, j int) bool

func (Releases) Swap

func (r Releases) Swap(i, j int)

type Schedule

type Schedule struct {
	Weekday  time.Weekday `json:"weekday"`
	Releases Releases     `json:"releases"`
}

type Schedules

type Schedules []*Schedule

func GetSchedule

func GetSchedule(ctx context.Context) (schedules Schedules, err error)

func (Schedules) Len

func (s Schedules) Len() int

func (Schedules) Less

func (s Schedules) Less(i, j int) bool

func (Schedules) Swap

func (s Schedules) Swap(i, j int)

Jump to

Keyboard shortcuts

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