Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPackages ¶
ExtractPackages copies framework packages from the embedded pkg/ source into targetDir/internal/<package>/, rewriting imports to the new module path.
func RenderApp ¶
RenderApp renders only the app subdirectory (controllers/, models/, views/, main.go) for adding a new app to an existing project.
func RenderProject ¶
RenderProject walks res/scaffold/ and writes files into targetDir.
Routing rules:
- res/scaffold/web/ → targetDir/<Dir>/
- res/scaffold/<path> → targetDir/<path>
Files ending in .tmpl are executed as text/template with <<>> delimiters and written with the .tmpl suffix stripped. All other files are copied verbatim.
Types ¶
Click to show internal directories.
Click to hide internal directories.