action

package
v0.0.0-...-a452233 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Name     string
	Action   func(args ...interface{}) (interface{}, error)
	Children []Action
}

Action is a named func

func New

func New(cmd string, action func(args ...interface{}) (interface{}, error)) *Action

New creates a root level Action for Repl

func (*Action) AddChild

func (a *Action) AddChild(child *Action) *Action

AddChild appends a child Action to a.Children

Jump to

Keyboard shortcuts

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