Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleConfig ¶
type BundleConfig struct { Output OutputConfig Template TemplateConfig }
BundleConfig ...
type FuncsLoader ¶
FuncsLoader load funcMap lazily
type FuncsLoaderFunc ¶
FuncsLoaderFunc ...
type IteratorFunc ¶
type IteratorFunc func() func() IteratorFuncItem
IteratorFunc func impls Iterator
type IteratorFuncItem ¶
type IteratorFuncItem struct { Valid bool Val interface{} }
IteratorFuncItem item for IteratorFunc
type OutputConfig ¶
type OutputConfig struct {
Dir string `cli:"usage=output dir" validate:"required"`
}
OutputConfig config for output
type StoreLoader ¶
StoreLoader load store lazily
type StoreLoaderFunc ¶
StoreLoaderFunc ...
func (StoreLoaderFunc) LoadStore ¶
func (l StoreLoaderFunc) LoadStore() (TypeStore, error)
LoadStore ...
type TemplateConfig ¶
type TemplateConfig struct {
Dir string `cli:"usage=template dir" validate:"required"`
}
TemplateConfig config for template
type TemplateContext ¶
type TemplateContext struct { T interface{} Index int }
TemplateContext context for FileName template
func (*TemplateContext) Head ¶
func (tc *TemplateContext) Head() interface{}
Head return first element of T if T is slice otherwise, return T
type ToolBuilder ¶
type ToolBuilder struct {
// contains filtered or unexported fields
}
ToolBuilder for Driver
func (*ToolBuilder) WithConfig ¶
func (b *ToolBuilder) WithConfig(conf ToolConfig) *ToolBuilder
WithConfig builder with config
func (*ToolBuilder) WithFuncsLoader ¶
func (b *ToolBuilder) WithFuncsLoader(loader FuncsLoader) *ToolBuilder
WithFuncsLoader funcs loader
func (*ToolBuilder) WithStoreLoader ¶
func (b *ToolBuilder) WithStoreLoader(loader StoreLoader) *ToolBuilder
WithStoreLoader store loader
type ToolConfig ¶
type ToolConfig struct { BundleConfig `mapstructure:",squash"` Extras []BundleConfig }
ToolConfig config for Tool
Click to show internal directories.
Click to hide internal directories.