internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NearestTimeslot

func NearestTimeslot(t string) (genday.Timeslot, error)

func SaveCurday

func SaveCurday(filename string, curday *genday.Curday) error

Types

type Channel

type Channel struct {
	Number    int       `json:"number"`
	ID        string    `json:"id"`
	Callsign  string    `json:"callsign"`
	Listings  []Listing `json:"listings"`
	Summary   bool      `json:"summary"`
	Hilite    bool      `json:"hilite"`
	AltHilite bool      `json:"althilite"`
}

type CurdayJSON

type CurdayJSON struct {
	Settings string    `json:"settings"`
	Timezone int       `json:"timezone"`
	Dst      bool      `json:"dst"`
	City     string    `json:"city"`
	Airport  string    `json:"airport"`
	Channels []Channel `json:"channels"`
}

func UnmarshalCurdayJSON

func UnmarshalCurdayJSON(data []byte) (CurdayJSON, error)

func (*CurdayJSON) Marshal

func (r *CurdayJSON) Marshal() ([]byte, error)

type Listing

type Listing struct {
	Time string `json:"time"`
	Name string `json:"name"`
}

type Message

type Message struct {
	// contains filtered or unexported fields
}

func NewMessage

func NewMessage(col color.Attribute, message string) *Message

func (*Message) String

func (msg *Message) String() string

func (*Message) ThenColor

func (msg *Message) ThenColor(col color.Attribute, message string) *Message

func (*Message) ThenColorStyle

func (msg *Message) ThenColorStyle(col color.Attribute, style color.Attribute, message string) *Message

Jump to

Keyboard shortcuts

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