menu

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Package menu contains a simple menu logic used in terminal game implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Menu struct {
	// contains filtered or unexported fields
}

Menu represents a game menu.

func New

func New(readme []byte) *Menu

New creates a new menu readme is a README.md file (pass nil if no readme).

func (m *Menu) Run()

Run runs the menu.

Jump to

Keyboard shortcuts

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