Documentation ¶
Index ¶
- func Run(templates ...Doer) error
- type Doer
- type Exported
- type Snippy
- func (s Snippy) Do() error
- func (s Snippy) Exported() map[string][]string
- func (s Snippy) Import(value string) string
- func (s Snippy) Imports() string
- func (s Snippy) Name() string
- func (s Snippy) Prepare(templatePath string, withValue interface{}, toPath ...string) Doer
- func (s *Snippy) ResetExported()
- func (s Snippy) UnzipHttp(url string, targetDir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Snippy ¶
type Snippy struct { WD string TemplatePath string OutputDir string OutputFile string Module string Data interface{} KV map[string]string ExporteData map[string][]string CamelCase func(s string) string LowCamelCase func(s string) string SnakeCase func(s string) string KebabCase func(s string) string // contains filtered or unexported fields }
func (*Snippy) ResetExported ¶
func (s *Snippy) ResetExported()
Click to show internal directories.
Click to hide internal directories.