Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApp ¶
func NewApp(appName string, appOptions AppOptions, rb RunnerBuilder, opts ...Option)
NewApp 创建一个application. TODO: 解析配置文件
Types ¶
type AppOptions ¶
type AppOptions interface { AddFlags() Validate() []error }
type RunnerBuilder ¶
type RunnerBuilder func() Runner
Click to show internal directories.
Click to hide internal directories.