Create the system for scaffolding a project from templates that are placed in https://github.com/lancer-kit/forge-templates repo.

Each template is expected to be in separate directory.
Specification for the templates will be placed in schema.yml file.
The schema for such template system will be defined by:
- template key
- template folder name prefix
- necessary template fields spec
Expected schema.yml file structure:

Expected .forge directory structure:

As a result Scaffold will have such algorithm of project generation:
- read
schema.yml file in .forge directory;
- read CLI flag values (Go Modules, Git Repository integration etc.) and validate them;
- form
map[string]interface{} struct for template population;
- validate the templates with template schema fields spec;
- generate the project to the CLI flag
--outpath.
The schema file, along with templates directories and predefined Bindata code will be placed in .forge directory.
Create the system for scaffolding a project from templates that are placed in https://github.com/lancer-kit/forge-templates repo.
Each template is expected to be in separate directory.
Specification for the templates will be placed in schema.yml file.
The schema for such template system will be defined by:
Expected

schema.ymlfile structure:Expected .forge directory structure:

As a result Scaffold will have such algorithm of project generation:
schema.ymlfile in.forgedirectory;map[string]interface{}struct for template population;--outpath.The schema file, along with templates directories and predefined Bindata code will be placed in .forge directory.