Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HeaderStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("229")) SelectedStyle = lipgloss.NewStyle().Bold(true).Background(lipgloss.Color("236")) HelpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("241")) GreenStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("82")) RedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("196")) DimStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("245")) TitleStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("99")).MarginBottom(1) )
Functions ¶
func ColorPercent ¶
Types ¶
type DetailModel ¶
type DetailModel struct {
Done bool
// contains filtered or unexported fields
}
func NewDetailModel ¶
func NewDetailModel(client *api.Client, coinID, vs string, width, height int) DetailModel
func (DetailModel) Init ¶
func (m DetailModel) Init() tea.Cmd
func (DetailModel) View ¶
func (m DetailModel) View() string
type MarketsModel ¶
type MarketsModel struct {
// contains filtered or unexported fields
}
func NewMarketsModel ¶
func NewMarketsModel(client *api.Client, vs, category string) MarketsModel
func (MarketsModel) Init ¶
func (m MarketsModel) Init() tea.Cmd
func (MarketsModel) View ¶
func (m MarketsModel) View() string
type TrendingModel ¶
type TrendingModel struct {
// contains filtered or unexported fields
}
func NewTrendingModel ¶
func NewTrendingModel(client *api.Client, vs string) TrendingModel
func (TrendingModel) Init ¶
func (m TrendingModel) Init() tea.Cmd
func (TrendingModel) View ¶
func (m TrendingModel) View() string
Click to show internal directories.
Click to hide internal directories.