util

package
v0.0.102 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 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 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() []time.Time

Today is sometimes actually yesterday

Types

This section is empty.

Jump to

Keyboard shortcuts

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