gcmd

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gcmd provides console operations, like options/values reading and command running.

Index

Constants

This section is empty.

Variables

View Source
var Option = &gCmdOption{} // Console options.
View Source
var Value = &gCmdValue{} // Console values.

Functions

func AutoRun

func AutoRun()

AutoRun automatically recognizes and executes the callback function by value of index 0 (the first console parameter).

func BindHandle

func BindHandle(cmd string, f func())

BindHandle registers callback function <f> with <cmd>.

func RunHandle

func RunHandle(cmd string)

RunHandle executes the callback function registered by <cmd>.

Types

This section is empty.

Jump to

Keyboard shortcuts

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