# Functions
CopyFile copies a file from src to dst.
CreateDirIfNotExists to create a directory if it is not already available.
DecodeBase64Credential to plain text if its b64 encoded, else return the data as-is.
ExecCommandOutput returns stdout and stderr in a single string, the return code, and error.
ExecCommandOutputWithTimeout executes ExecCommandOutput with the specified timeout.
FileCheck : checks for error.
FileDelete : delete the file.
FileExists does a stat on the path and returns true if it existsIn addition, dir returns true if the path is a directory.
FileGetStrings : get the file contents as array of string.
FileGetStringsWithPattern : get the filecontents as array of string matching pattern pattern.
FileloadGob : Load and Decode Gob file.
FileReadFirstLine read first line from a file TODO: make it OS independent.
FileSaveGob : save the Gob file.
FileWriteString : write line to the path.
FileWriteStrings writes all lines to file specified by path.
FindStringSubmatchMap : find and build the map of named groups.
GetNltHome returns base install directory of NLT or HPE cloud toolkits.
InitializeRouter initializes all handlers.
IsFileSymlink to check if the path exists and if it's a symlink.
ToCamelCase converts the given snake_case string to camelCase.
ToSnakeCase converts the given camelCase string into snake_case.