formatter

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFollowUp

func FormatFollowUp(f FollowUp) string

Types

type FollowUp

type FollowUp struct {
	Outcome  string
	Score    string
	Correct  bool
	Record   string
	Opponent string
	PostURI  string
}

type GameDayPost

type GameDayPost struct {
	Game       *mlb.Game
	Record     *mlb.TeamRecord
	H2H        *mlb.H2HRecord
	Pitcher    *mlb.PitcherStats
	Horoscope  *horoscope.Horoscope
	Prediction prediction.Prediction
}

type OffDayPost

type OffDayPost struct {
	Record    *mlb.TeamRecord
	Horoscope *horoscope.Horoscope
}

type Post

type Post struct {
	Text          string
	HoroscopeText string // full text for image card, empty if unavailable
	Prediction    prediction.Prediction
	Game          *mlb.Game
}

Post holds the text and optional horoscope for image generation.

func FormatGameDay

func FormatGameDay(p GameDayPost) Post

func FormatOffDay

func FormatOffDay(p OffDayPost) Post

Jump to

Keyboard shortcuts

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