Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct{}
Engine renders embedded templates onto disk or produces a dry-run plan.
type PlanEntry ¶
type PlanEntry struct {
Path string `json:"path"`
Action Action `json:"action"`
Mode os.FileMode `json:"mode"`
Reason string `json:"reason,omitempty"`
}
PlanEntry describes one file that would be or was generated.
type Variables ¶
type Variables struct {
PROJECT_NAME string
MODULE_NAME string
DATABASE string
AUTHOR string
HTTP_PORT int
GO_VERSION string
PackageName string
}
Variables exposes template placeholders documented in ForgeKit specs.
func (Variables) ToTemplateData ¶
ToTemplateData converts engine variables back to render data.
Click to show internal directories.
Click to hide internal directories.