Documentation ¶
Index ¶
- func CommandCallProc(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandError(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandIf(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandMath(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandProc(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandPuts(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandRetCodes(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandReturn(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandSet(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandUnset(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandWhile(i *Interp, argv []string, pd interface{}) (string, error)
- func TestneedleInHaystack(t *testing.T)
- type CallFrame
- type Cmd
- type CmdFunc
- type Interp
- func (i *Interp) Command(name string) *Cmd
- func (i *Interp) Eval(t string) (string, error)
- func (i *Interp) RegisterCommand(name string, fn CmdFunc, privdata interface{}) error
- func (i *Interp) RegisterCoreCommands()
- func (i *Interp) SetVar(name, val string)
- func (i *Interp) UnsetVar(name string)
- func (i *Interp) Var(name string) (Var, bool)
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandCallProc ¶
CommandCallProc is a function to call proc commands for TCL
func CommandError ¶
CommandError is a function to return error codes for commands for TCL
func CommandMath ¶
CommandMath is the math command for TCL
func CommandProc ¶
CommandProc is a function to register proc commands for TCL
func CommandPuts ¶
CommandPuts is a function to print strings for TCL
func CommandRetCodes ¶
CommandRetCodes is a function to get the return codes for TCL
func CommandReturn ¶
CommandReturn is a function to register return codes for commands for TCL
func CommandSet ¶
CommandSet is the set command for TCL
func CommandUnset ¶
CommandUnset is the unset command for TCL
func CommandWhile ¶
CommandWhile is the while command for TCL
func TestneedleInHaystack ¶
TestneedleInHaystack tests the return value of needleInHaystack
Types ¶
type Interp ¶
type Interp struct {
// contains filtered or unexported fields
}
func InitInterp ¶
func InitInterp() *Interp
func (*Interp) RegisterCommand ¶
func (*Interp) RegisterCoreCommands ¶
func (i *Interp) RegisterCoreCommands()
RegisterCoreCommands is a callable to register TCL commands.