Documentation ¶
Index ¶
- Variables
- func Command() []*cli.Command
- func Init(t *Dux)
- func IsRelease() bool
- func Register(opt *Config)
- func Start(t *Dux)
- type Config
- type Dux
- func (t *Dux) RegisterApp(calls ...func())
- func (t *Dux) RegisterCmd(calls ...func() []*cli.Command)
- func (t *Dux) RegisterDir(dirs ...string)
- func (t *Dux) RegisterLangFS(fs embed.FS)
- func (t *Dux) RegisterTpl(name string, dir string)
- func (t *Dux) RegisterTplFS(name string, fs embed.FS)
- func (t *Dux) Run()
- func (t *Dux) SetAnnotations(data []*annotation.File)
- func (t *Dux) SetConfigDir(dir string)
- func (t *Dux) SetDataDir(dir string)
- func (t *Dux) SetPageFs(fs embed.FS)
- func (t *Dux) SetStaticFs(fs embed.FS)
- func (t *Dux) SetTablePrefix(prefix string)
- func (t *Dux) SetTimezone(location *time.Location)
Constants ¶
This section is empty.
Variables ¶
var ( // List Applications List = make(map[string]*Config) // Indexes Application Index Indexes []string )
Functions ¶
Types ¶
type Dux ¶
type Dux struct { Lang string // contains filtered or unexported fields }
Dux 基础结构 Dux infrastructure
func (*Dux) RegisterApp ¶
func (t *Dux) RegisterApp(calls ...func())
RegisterApp 应用注册 RegisterApp register application
func (*Dux) RegisterCmd ¶
func (t *Dux) RegisterCmd(calls ...func() []*cli.Command)
RegisterCmd 命令注册 RegisterCmd register command
func (*Dux) RegisterDir ¶
RegisterDir 自动创建目录 RegisterDir register folder creation
func (*Dux) RegisterLangFS ¶
RegisterLangFS 注册语言包 RegisterLangFS register language packs
func (*Dux) RegisterTpl ¶
RegisterTpl 注册模板目录 RegisterTpl register template folder
func (*Dux) RegisterTplFS ¶
RegisterTplFS 注册虚拟模板目录 RegisterTplFS register FS template folder
func (*Dux) SetAnnotations ¶
func (t *Dux) SetAnnotations(data []*annotation.File)
SetAnnotations 设置索引文件 SetAnnotations set index file
func (*Dux) SetConfigDir ¶
SetConfigDir 设置配置目录 SetConfigDir setting the config folder
func (*Dux) SetDataDir ¶
SetDataDir 设置数据目录 SetConfigDir setting the data folder
func (*Dux) SetStaticFs ¶
SetStaticFs 设置静态目录 SetStaticFs setting up static folder
func (*Dux) SetTablePrefix ¶
SetTablePrefix 设置表前缀 SetTablePrefix Set table prefix
func (*Dux) SetTimezone ¶
SetTimezone 设置时区 SetStaticFs setting the time zone