view

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Main

type Main struct {

	// Output is the view output
	Output string
	// contains filtered or unexported fields
}

Main is the main view for the TUI.

func New

func New(ctx context.Context, manager controller, logger *slog.Logger, opts ...OptFunc) (*Main, error)

New returns a new main view.

func (*Main) Close

func (m *Main) Close()

Close handles the closing of the main view.

func (*Main) Init

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

Init starts the view.

func (*Main) Update

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

func (*Main) View

func (m *Main) View() string

type OptFunc

type OptFunc func(main *Main)

func WithProfessor

func WithProfessor(professor professor) OptFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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