util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTodays added in v0.0.102

func AddTodays(today time.Time, previousDays int, advanceDays int) []time.Time

func FakeTodayFunc added in v0.0.109

func FakeTodayFunc(t time.Time) func() []time.Time

func FileExists

func FileExists(fileName string) (bool, error)

FileExists ...

func NCAAFToday

func NCAAFToday(t time.Time) []time.Time

NCAAFToday takes a single "today" time and adds thurs-sat games for the coming week. Sunday shows previous week's scores

func NFLToday

func NFLToday(t time.Time) []time.Time

NFLToday takes a single "today" time and adds thurs, sun, mon games for the coming week. Monday shows previous week's scores

func PullPng

func PullPng(ctx context.Context, url string) (image.Image, error)

PullPng GETs a png and returns it decoded as an image.Image

func SetCrons

func SetCrons(times []string, f func()) error

func Today

func Today(t time.Time) time.Time

Today is sometimes actually yesterday

func TodayFunc added in v0.0.104

func TodayFunc() func() []time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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