utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FIRST_YEAR = 2015
)

Variables

This section is empty.

Functions

func ClearTerminal

func ClearTerminal()

func GetCurrentMaxYearAndDay

func GetCurrentMaxYearAndDay() (int, int)

func GetTerminalSize

func GetTerminalSize() (int, int, error)

func GetYearAndDayFromCWD

func GetYearAndDayFromCWD() (int, int, error)

func GetYearAndDayFromDirInput

func GetYearAndDayFromDirInput(curDir, parentDir string) (int, int, error)

func LaunchURL

func LaunchURL(url string) error

func ParseDay

func ParseDay(dayStr string) (int, error)

func ParseDuration

func ParseDuration(input string) (time.Duration, error)

ParseDuration extracts and returns the duration from the input string

func ParseYear

func ParseYear(yearStr string) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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