Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManifestConfigurations ¶
type ManifestConfigurations struct { Template *templateConfigurations `json:"template" yaml:"template"` Output *outputConfigurations `json:"output" yaml:"output"` TemplateFiles map[string]*templateFileConfigurations `json:"template_files" yaml:"template_files"` SupportingFiles []string `json:"supporting_files" yaml:"supporting_files"` MetaData map[string]interface{} `json:"metadata" yaml:"metadata"` }
ManifestConfigurations holds the information of manifest file.
func LoadTemplates ¶
func LoadTemplates(templateDirectory string) (map[string]*Template, *ManifestConfigurations, error)
LoadTemplates read the template manifest and load all templates info.
type Template ¶
type Template struct { Filename string FileDirectory string FilePath string FileContent string Format string IsNeedGenerate bool ID string // service, sub_service or types OutputFilename string OutputFilePath string OutputFileNaming *fileNamingConfiguration }
A Template holds the information of template file.
func (*Template) UpdateOutputFilePath ¶
UpdateOutputFilePath updates the absolute path of output file.
func (*Template) UpdateOutputFilename ¶
UpdateOutputFilename updates the output filename according to namingStyle.
Click to show internal directories.
Click to hide internal directories.