package
2.7.7+incompatible
Repository: https://github.com/coveooss/gotemplate.git
Documentation: pkg.go.dev

# Functions

Color returns a color attribute build from supplied attribute names.
ColorErrorPrint call standard fmt.Printf function but using the color out stream.
ColorErrorPrintf call standard fmt.Printf function but using the color out stream.
ColorErrorPrintln call standard fmt.Println function but using the color out stream.
ColorPrint call standard fmt.Printf function but using the color out stream.
ColorPrintf call standard fmt.Printf function but using the color out stream.
ColorPrintln call standard fmt.Println function but using the color out stream.
FindFiles returns the list of the files matching the array of patterns.
FindFilesMaxDepth returns the list of the files matching the array of patterns.
FormatList returns an array of string where format as been applied on every element of the supplied array.
FormatMessage analyses the arguments to determine if printf or println should be used.
GetCommandFromFile returns an exec.Cmd structure to run the supplied script file.
GetCommandFromString returns an exec.Cmd structure to run the supplied command.
GetEnv returns the environment variable value or defaultValue if it does not exist.
GetLoremKind converts a name to LoremKind.
GetRegexGroup cache compiled regex to avoid multiple interpretation of the same regex.
GlobFunc returns an array of string representing the expansion of the supplied arguments using filepath.Glob function.
GlobFuncTrim returns an array of string representing the expansion of the supplied arguments using filepath.Glob function, it removes the unmatched arguments.
InitReplacers configures the list of substitution that should be applied on each document.
IsCommand ensures that the supplied command does not contain any shell specific characters.
IsShebangScript determines if the supplied code has a Shebang definition #! program subprogram.
IsTerraformFile check if the file extension matches on of the terraform file extension.
Lorem generates random string using lorem ipsum generator.
MergeDictionaries merges multiple dictionaries into a single one prioritizing the first ones.
MergeLists return a single list from all supplied lists.
MultiMatch returns a map of matching elements from a list of regular expressions (returning the first matching element).
MustFindFiles returns the list of the files matching the array of patterns with panic on error.
MustFindFilesMaxDepth returns the list of the files matching the array of patterns with panic on error.
Pwd returns the current folder.
Relative returns the relative path of file from folder.
ScriptParts splits up the supplied content into program, subprogram and source if the content matches Shebang defintion.
SprintColor returns a string formated with attributes that are supplied before.
Substitute actually applies the configured substituter.
TerraformFormat applies terraform fmt on.

# Constants

Background attributes.
Background attributes.
Background attributes.
Background attributes.
Background attributes high intensity.
Background attributes high intensity.
Background attributes high intensity.
Background attributes high intensity.
Background attributes high intensity.
Background attributes high intensity.
Background attributes high intensity.
Background attributes high intensity.
Background attributes.
Background attributes.
Background attributes.
Background attributes.
The following constant are copied from the color package in order to get the actual names.
The following constant are copied from the color package in order to get the actual names.
The following constant are copied from the color package in order to get the actual names.
The following constant are copied from the color package in order to get the actual names.
The following constant are copied from the color package in order to get the actual names.
Constant used to describe the different kind of lorem generator.
The following constant are copied from the color package in order to get the actual names.
Foreground attributes.
Foreground attributes.
Foreground attributes.
Foreground attributes.
Foreground attributes high intensity.
Foreground attributes high intensity.
Foreground attributes high intensity.
Foreground attributes high intensity.
Foreground attributes high intensity.
Foreground attributes high intensity.
Foreground attributes high intensity.
Foreground attributes high intensity.
Foreground attributes.
Foreground attributes.
Foreground attributes.
Foreground attributes.
Constant used to describe the different kind of lorem generator.
The following constant are copied from the color package in order to get the actual names.
Constant used to describe the different kind of lorem generator.
The following constant are copied from the color package in order to get the actual names.
The following constant are copied from the color package in order to get the actual names.
Constant used to describe the different kind of lorem generator.
The following constant are copied from the color package in order to get the actual names.
Constant used to describe the different kind of lorem generator.
Constant used to describe the different kind of lorem generator.

# Variables

No description provided by the author

# Structs

RegexReplacer defines struct composed of one regular expression and its replacement string.

# Type aliases

Attribute is imported from color attribute.
LoremKind represents the various Lorem Ipsum generator type.
String is simply an alias of collections.String.