Help us shape the future of Go! Take the 2026 Go Developer Survey

constants

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GradientStartColor = "#00FFFF" // Bright cyan
	GradientEndColor   = "#FF0000" // Bright red
)

Gradient colors for spinner and title (Red & Cyan theme)

View Source
const (
	MenuStats       = "Finished Matches"
	MenuLiveMatches = "Live Matches"
	MenuSettings    = "Settings"
	MenuSoccer      = "Soccer"
	MenuCricket     = "Cricket"
	MenuCricketLive = "Live Dashboard"
	MenuArchives    = "Archives"
)

Menu items

View Source
const (
	PanelLiveMatches       = "Live Matches"
	PanelFinishedMatches   = "Finished Matches"
	PanelMatchDetails      = "Match Details"
	PanelMatchList         = "Match List"
	PanelUpcomingMatches   = "Upcoming Matches"
	PanelMinuteByMinute    = "Minute-by-minute"
	PanelMatchStatistics   = "Match Statistics"
	PanelUpdates           = "Updates"
	PanelLeaguePreferences = "League Preferences"
)

Panel titles

View Source
const (
	EmptyNoLiveMatches     = "No live matches"
	EmptyNoFinishedMatches = "No finished matches"
	EmptySelectMatch       = "Select a match"
	EmptyNoUpdates         = "No updates"
	EmptyNoMatches         = "No matches available"
)

Empty state messages

View Source
const (
	ErrorLoadFailed   = "Unable to load data"
	ErrorMatchDetails = "Unable to load match details"
	ErrorRetryHint    = "r: retry"
)

Error messages

View Source
const (
	HelpMainMenu           = "↑/↓: navigate  Enter: select  q: quit"
	HelpSportSelector      = "↑/↓: navigate  Enter: select  q: quit"
	HelpSportMainMenu      = "↑/↓: navigate  Enter: select  Esc: sports  q: quit"
	HelpCricketPlaceholder = "Esc: back  q: quit"
	HelpMatchesView        = "↑/↓: navigate  r: refresh  x: statistics  s: standings  /: filter  Esc: back  q: quit"
	HelpSettingsView       = "↑/↓: navigate  ←/→: switch tabs  Space: toggle  /: filter  Enter: save  Esc: back"
	HelpStatsView          = "h/l: date range  j/k: navigate  Tab: focus details  ↑/↓: scroll when focused  r: refresh details  /: filter  Esc: back"
	HelpStatsViewUnfocused = "Tab: focus details"
	HelpStatsViewFocused   = "Tab: unfocus  s: standings  f: formations  x: all statistics  ↑/↓: scroll"
	HelpStandingsDialog    = "Esc: close"
	HelpFormationsDialog   = "Tab/←/→: switch team  Esc: close"
	HelpStatisticsDialog   = "↑/↓: navigate  Esc: close"

	// Edge case user-facing hints
	ErrorNoStatistics = "No statistics available yet"
	ErrorNoStandings  = "No standings available"
)

Help text

View Source
const (
	StatusLive            = "LIVE"
	StatusFinished        = "FT"
	StatusNotStarted      = "VS"
	StatusNotStartedShort = "NS"
	StatusFinishedText    = "Finished"
)

Status text

View Source
const (
	LabelStatus = "Status: "
	LabelScore  = "Score: "
	LabelLeague = "League: "
	LabelDate   = "Date: "
	LabelVenue  = "Venue: "
)

Stats labels

View Source
const ASCIITitle = `` /* 263-byte string literal not displayed */

ASCIITitle is the ASCII art logo for the application.

View Source
const (
	LoadingFetching = "Fetching..."
)

Loading text

View Source
const MainViewCheckDelay = 1500 * time.Millisecond

MainViewCheckDelay is the delay before navigating to a selected view in the main menu. Set to 1.5 seconds to allow API preloading while showing transition animation.

View Source
const (
	// NotificationTitleGoal is the title shown in goal notifications.
	NotificationTitleGoal = "Goal"
)

Notification text

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusBannerType

type StatusBannerType int

StatusBannerType represents the type of status banner to display at the top of views.

const (
	// StatusBannerNone indicates no status banner should be displayed.
	StatusBannerNone StatusBannerType = iota
	// StatusBannerDebug indicates debug mode is active and logs are being written.
	StatusBannerDebug
	// StatusBannerNewVersion indicates a new version of Scoreline is available.
	StatusBannerNewVersion
	// StatusBannerDev indicates this is a development build.
	StatusBannerDev
)

Jump to

Keyboard shortcuts

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