util

package
v0.0.0-...-c5fd561 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIMENOW          = "15:04:05.000"
	DATE_FORMAT      = "2006-01-02"
	DATE_TIME_FORMAT = "2006-01-02T15:04:05" // TODO: TeamGame.Date is in DATE_TIME FORMAT
)
View Source
const (
	SEASON_START_2022_23 = "2022-10-18"
	SEASON_END_2022_23   = "2023-04-10"
	SEASON_START_2021_22 = "2021-10-19"
	SEASON_END_2021_22   = "2022-04-11"
	SEASON_START_2020_21 = "2020-12-22"
	SEASON_END_2020_21   = "2021-04-17"
)

Variables

This section is empty.

Functions

func ClearString

func ClearString(str string) string

func Print

func Print(foo interface{}) string

func SEASON_DATE

func SEASON_DATE(seasonDate string) time.Time

func TIME_MAXIMUM

func TIME_MAXIMUM() time.Time

func TIME_MINIMUM

func TIME_MINIMUM() time.Time

func TimeLog

func TimeLog(msg string, start time.Time) string

Types

type Config

type Config struct {
	DBSource string `mapstructure:"DB_SOURCE"`
}

Config stores all configuration fields

func LoadConfig

func LoadConfig(path string) (config Config, err error)

Loads configuration from the file at the provided path

Jump to

Keyboard shortcuts

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