Documentation ¶
Index ¶
- type App
- func (a *App) Generate(ctx context.Context, options ReplaceOptions) (string, error)
- func (a *App) GetDirectories(_ context.Context, selectedDir string) ([]string, error)
- func (a *App) GetTemplatesList(_ context.Context) ([]Template, error)
- func (a *App) PreviewList(_ context.Context, options ReplaceOptions) ([]PreviewListItem, error)
- func (a *App) RawList(ctx context.Context, options ReplaceOptions) ([]PreviewListItem, error)
- type Placeholder
- type Placeholders
- type PreviewListItem
- type ReplaceOptions
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
func (*App) GetDirectories ¶
func (*App) GetTemplatesList ¶
func (*App) PreviewList ¶
func (a *App) PreviewList(_ context.Context, options ReplaceOptions) ([]PreviewListItem, error)
func (*App) RawList ¶
func (a *App) RawList(ctx context.Context, options ReplaceOptions) ([]PreviewListItem, error)
type Placeholder ¶
type Placeholders ¶
type Placeholders []Placeholder
type PreviewListItem ¶
type ReplaceOptions ¶
type ReplaceOptions struct { TemplateID string `json:"template_id"` TargetRelativeRootDir string `json:"target_dir"` Placeholders []Placeholder `json:"placeholders"` }
Click to show internal directories.
Click to hide internal directories.