Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Permission MODES DIR_MODE int = 0755 // FS errors DIR_EXISTS string = "Directory exists" TEMPLATE_NOT_PASSED string = "No template passed" TEMPLATE_NOT_FOUND string = "No template found" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { Config ProjectConfig // contains filtered or unexported fields }
Contains the config the fs api and template info fs: It manage all fs operations copy files and directories, read files, etc. Config: It saves project config: project name, templates directories, template name... template: saves the template struct that manage template operations: read template content, load and run template scripts.
func NewProject ¶
func NewProject(projectConfig ProjectConfig, templateConfig template.TemplateConfig) *Project
Generates a new projects giving the project config and and a template config
func (*Project) CreateRootFolder ¶
Create the root folder of the project
Click to show internal directories.
Click to hide internal directories.