Documentation
      ¶
    
    
  
    
  
    Index ¶
- func DetectExistVars(templates map[string]string, values map[string]string) (newValues map[string]string)
 - func GenerateAllFormatVar(values map[string]string, baseVarName, baseValue string)
 - func ReadTemplate(templateFile string) string
 - func ReplaceVar(s, varName, value string) string
 - func ReplaceVarInFile(filename string, reg *regexp.Regexp, new string)
 - func ReplaceVarInTemplates(templates map[string]string, valueMap map[string]string)
 - func ReplaceVars(s string, valueMap map[string]string) string
 - func WriteTemplates(path string, templates map[string]string)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectExistVars ¶
func DetectExistVars(templates map[string]string, values map[string]string) (newValues map[string]string)
DetectExistVars filter the used vars in templates
func GenerateAllFormatVar ¶
GenerateAllFormatVar fill all format var into values
func ReadTemplate ¶
ReadTemplate read a file to string
func ReplaceVar ¶
ReplaceVar will replace s with value and return it
func ReplaceVarInFile ¶
ReplaceVarInFile replacte var into file without reading
func ReplaceVarInTemplates ¶
ReplaceVarInTemplates replace var with templates into templates
func ReplaceVars ¶
ReplaceVars will replace s with valueMap and return it
func WriteTemplates ¶
WriteTemplates write some strings to files
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.