internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = map[string]Command{
	"help": {
		Name:        "help",
		NameANSI:    "\033[33mhelp\033[0m",
		Description: "show this message",
		Callback:    nil,
	},
	"exit": {
		Name:        "exit",
		NameANSI:    "\033[33mexit\033[0m",
		Description: "exit the server",
		Callback:    func() { os.Exit(0) },
	},
	"config": {
		Name:        "config",
		NameANSI:    "\033[33mconfig\033[0m",
		Description: "show the config",
		Callback:    showConfig,
	},
}
View Source
var (
	HelpMsg = title + createHelpMessage(Commands)
)

Functions

This section is empty.

Types

type Command

type Command struct {
	Name        string
	NameANSI    string
	Description string
	Callback    func()
}

Jump to

Keyboard shortcuts

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