data

package
v0.0.0-...-61a02bd Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	AppName    string            `yaml:"app-name"`
	AuthorID   string            `yaml:"author-id"`
	AuthorName string            `yaml:"author-name"`
	TvChannel  map[string]string `yaml:"tv-channel"`
	DayOfWeek  []struct {
		ID   string `yaml:"id"`
		Name string `yaml:"name"`
	} `yaml:"day-of-week"`
	SlotOfDay []struct {
		ID    string `yaml:"id"`
		Name  string `yaml:"name"`
		Color string `yaml:"color"`
		From  int    `yaml:"from"`
		To    int    `yaml:"to"`
	} `yaml:"slot-of-day"`
	Lineups []struct {
		Title         string `yaml:"title"`
		StartTime     string `yaml:"start_time"`
		ChannelCode   string `yaml:"channel"`
		DayOfWeekCode string `yaml:"day_of_week"`
	} `yaml:"lineups"`
}

Data is

func Load

func Load() (*Data, error)

Load is

func (*Data) GetSlot

func (d *Data) GetSlot(t time.Time) string

GetSlot is

Jump to

Keyboard shortcuts

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