package
Version:
v0.0.0-...-2d5f3dc
Opens a new window with list of versions in this module.
Published: Jun 27, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Command interface {
Execute(handler Handler)
}
inputPrint := "print your-string-here"
inputSplit := "split"
cmdPrint := Parse(inputPrint)
cmdSplit := Parse(inputSplit)
var handler Handler
handler.Post(cmdPrint)
handler.Post(cmdSplit)
Output:
type Handler interface {
Post(cmd Command)
}
type PrintCmd struct {
Text string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.