commands

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugMode bool
View Source
var List []Command
View Source
var StrictMode bool
View Source
var Version = "0.0.0-dev"

Functions

func Help

func Help(args ...string) error

func RegisterCommand

func RegisterCommand(name string, desc string, fn Executor)

func Serve

func Serve(args ...string) error

func ServeError

func ServeError(w http.ResponseWriter, req *http.Request, err error)

func Tack

func Tack(args ...string) error

Types

type Command

type Command struct {
	Name        string
	Description string
	Fn          Executor
}

type Executor

type Executor func(args ...string) error

Jump to

Keyboard shortcuts

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