Documentation ¶
Overview ¶
its very interesting and simple for go main file to run all kinds funcs and runable struct. The struct should provide a Run() function.
Index ¶
- Variables
- func AddFunc(fn func(), args ...string)
- func AddRunner(v Runner, args ...string)
- func AddStruct(v interface{})
- func LoopRun(v Runner, args ...interface{})
- func LoopRunFunc(fn func())
- func Main()
- func Run(v Runner, args ...interface{})
- func RunAll()
- func RunAllFuncs()
- func RunAllMethods()
- func RunAllRunners()
- func RunFunc(fn func())
- func RunFuncWithKey(key string)
- func RunKey(key string)
- func RunMethod(name string)
- func ShowHelp()
- func ShowMenu()
- func ShowRunFuncs()
- func ShowRunMethods()
- func ShowRunners()
- func TimesRun(v Runner, times int, args ...interface{})
- func TimesRunFunc(fn func(), times int)
- type Runner
Constants ¶
This section is empty.
Variables ¶
View Source
var MethodMap = make(map[string]reflect.Value)
Functions ¶
func LoopRunFunc ¶
func LoopRunFunc(fn func())
func RunAllFuncs ¶
func RunAllFuncs()
func RunAllMethods ¶
func RunAllMethods()
func RunAllRunners ¶
func RunAllRunners()
func RunFuncWithKey ¶
func RunFuncWithKey(key string)
func ShowRunFuncs ¶
func ShowRunFuncs()
func ShowRunMethods ¶
func ShowRunMethods()
func ShowRunners ¶
func ShowRunners()
func TimesRunFunc ¶
func TimesRunFunc(fn func(), times int)
Types ¶
Click to show internal directories.
Click to hide internal directories.