cli

package
v0.0.0-...-5f76ab9 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Types

type App

type App struct {
	ExitValue     int
	HelpWanted    bool
	VersionWanted bool
	LastFirst     bool
}

func (*App) DisplayNames

func (app *App) DisplayNames(class Students)

func (*App) NoOp

func (app *App) NoOp() bool

func (*App) ParseFlags

func (app *App) ParseFlags(args []string)

func (*App) Unmarshal

func (app *App) Unmarshal(classFile string) Students

type Class

type Class struct {
	Students Students `json:"students"`
}

type Student

type Student struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

type Students

type Students map[string]*Student

Jump to

Keyboard shortcuts

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