rank

package
v0.0.0-...-07a7878 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BrowseState = iota
	ExecuteProgramState
	ErrorState
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	*common.Model
	// contains filtered or unexported fields
}

func New

func New(programPath string, input string) *Model

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

type ParticipantScore

type ParticipantScore struct {
	Participant *models.Participant `json:"participant"`
	Response    *models.Response    `json:"response"`
	Score       int                 `json:"score"`
}

type Rank

type Rank struct {
	Scores []*ParticipantScore `json:"scores"`
}

Jump to

Keyboard shortcuts

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