rank

package
v0.0.0-...-b513964 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExecutingScriptState = iota
	BrowseState
	ErrorState
)

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
}

type RankModel

type RankModel struct {

	// json
	InputJson string
	Result    string
	// contains filtered or unexported fields
}

func New

func New(path string, stdin string) *RankModel

func (*RankModel) Init

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

func (*RankModel) Update

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

func (*RankModel) View

func (m *RankModel) View() string

Jump to

Keyboard shortcuts

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