utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CitiesToItems added in v1.2.0

func CitiesToItems(cities []types.City) []list.Item

func ClearDefaultCity added in v1.2.0

func ClearDefaultCity() error

func CodeToStatus

func CodeToStatus(code int) string

func ForecastToColumns added in v1.2.0

func ForecastToColumns(forecast types.ForecastResponse) []table.Column

func ForecastToRows added in v1.2.0

func ForecastToRows(forecast types.ForecastResponse) []table.Row

func GetDefaultCity added in v1.2.0

func GetDefaultCity() (types.City, error)

func IsoToWeekday

func IsoToWeekday(isoDate string) string

func SetDefaultCity added in v1.2.0

func SetDefaultCity(city types.City)

func TermSize added in v1.2.0

func TermSize() (int, int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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