Documentation
¶
Index ¶
- func AddImports(path string, deps []string) error
- func AddJSONSection(fp, section string, data interface{}) error
- func AppendTemplateToFile(path string, t *template.Template, data interface{}) error
- func AppendTextToFile(path, text string) error
- func CreateTemplateFile(t *template.Template, dest string, data interface{}, overwrite bool) error
- func CreateTemplateFiles(templatesFS embed.FS, dest string, params map[string]string, overwrite bool) ([]string, error)
- func GetGoModulePath(projectDir string) (string, error)
- func InsertRoute(path string, p InsertRouteParams) error
- func InsertTemplateToFile(path string, t *template.Template, data interface{}, offset int) error
- func InsertTextToFile(path, text string, offset int) error
- func InsertWireModuleItems(filePath, items string) error
- type CodeModifier
- type InsertRouteParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddImports ¶
func AddJSONSection ¶
func AppendTemplateToFile ¶
func AppendTextToFile ¶
func CreateTemplateFile ¶
func CreateTemplateFiles ¶
func GetGoModulePath ¶
func InsertRoute ¶
func InsertRoute(path string, p InsertRouteParams) error
func InsertTemplateToFile ¶
func InsertTextToFile ¶
func InsertWireModuleItems ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.