core

package
v0.0.0-...-c3a52a6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePilotForm

func CreatePilotForm() *tview.Form

Generate the pilot form itself

Types

type GoBrief

type GoBrief struct {
	TView      *tview.Application
	PageHolder *tview.Pages
	PageName   string
}

Main Application struct: TView is the tview libray's own construct. PageHolder is the page that will be rendered at any given time.

var (
	App        *GoBrief
	AppVersion = "GoBrief v0.1"
)

Global Variables for Gobrief

func (*GoBrief) Init

func (g *GoBrief) Init()

Initialize the main application

type Pilot

type Pilot struct {
	ID          int    `json:"id"`
	FirstName   string `json:"firstName"`
	LastName    string `json:"lastName"`
	DisplayName string `json:"displayName"`
	HomeAirport string `json:"homeAirport"`
}

func GenPilot

func GenPilot(firstName string, lastName string, homeApt string) (pilot *Pilot)

type PilotProfilePage

type PilotProfilePage struct {
	Grid *tview.Grid
	Node *tview.TreeNode
}

func CreatePilotProfilePage

func CreatePilotProfilePage() *PilotProfilePage

Create the pilot profiles page

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳