Documentation ¶
Overview ¶
Package generator render go template, call external commands, generate gommon specific methods based on gommon.yml
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIgnores ¶
func GenerateSingle ¶
Types ¶
type Config ¶
type Config struct { Loggers []LoggerConfig `yaml:"loggers"` GoTemplates []GoTemplateConfig `yaml:"gotmpls"` Shells []ShellConfig `yaml:"shells"` // contains filtered or unexported fields }
func (*Config) RenderGoTemplate ¶
func (*Config) RenderGommon ¶ added in v0.0.5
func (*Config) RenderShell ¶ added in v0.0.5
type GoTemplateConfig ¶
type GoTemplateConfig struct { Src string `yaml:"src"` Dst string `yaml:"dst"` Go bool `yaml:"go"` Data interface{} `yaml:"data"` }
func (*GoTemplateConfig) Render ¶
func (c *GoTemplateConfig) Render(root string) error
type LoggerConfig ¶
type ShellConfig ¶ added in v0.0.5
https://github.com/dyweb/gommon/issues/53
func (*ShellConfig) Render ¶ added in v0.0.5
func (c *ShellConfig) Render(root string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.