Documentation
¶
Index ¶
- func ApproxEnd(kind string, start time.Time) time.Time
- func BuildUISessions(r models.Race, season, round string, resultsURL func(string, string) string) ([]models.UISession, models.UISession, error)
- func CountryCodeToFlag(code string) string
- func CountryNameToCode(name, gpName, circuitName string) string
- func FetchCircuitSVG(wikiURL string) string
- func HasChafa() bool
- func OpenURL(url string)
- func ParseUTC(date, t string) (time.Time, error)
- func RenderWithChafa(svgPath string) string
- func ToLocal(t time.Time) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildUISessions ¶
func BuildUISessions(r models.Race, season, round string, resultsURL func(string, string) string) ([]models.UISession, models.UISession, error)
BuildUISessions converts Race data to UI-friendly session format
func CountryCodeToFlag ¶
countryCodeToFlag converts ISO 3166-1 alpha-2 country code to flag emoji
func CountryNameToCode ¶
countryNameToCode maps common country names to ISO codes (add as many as needed)
func FetchCircuitSVG ¶
FetchCircuitSVG attempts to fetch circuit SVG (placeholder implementation)
func RenderWithChafa ¶
RenderWithChafa renders an image using chafa terminal graphics
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.