# Functions
replace special file name characters: "'`:*?><|$}{@&^;/\ by _ underscore.
replace special file name characters: "'`:*?><|$}{@&^; by _ underscore.
DeepCopy using gob to make a deep copy from src into dst, both src and dst expected to be a pointers.
FileToUtf8 read file content and convert it to UTF-8 string.
FromJson restore from json string bytes and convert to destination pointer.
FromJsonFile reads read from json file and convert to destination pointer.
FromUnderscoreTimeStamp converts timestamp string to date-time string: 2021_07_16_13_40_53_882 into 2021-07-16 13:40:53.882 If source string is not a date-time string then return empty "" string.
return greatest common divisor of all src[].
greatest common divisor of two integers.
return true if path exists and it is directory, return error if path is not a directory or not accessible.
IsTimeStamp return true if src is timestamp string: 2021-07-16 13:40:53.882.
IsUnderscoreTimeStamp return true if src is underscore timestamp string: 2021_07_16_13_40_53_882.
MakeDateTime return date-time string, ie: 2012-08-17 16:04:59.148.
MakeTimeStamp return timestamp string as: 2012_08_17_16_04_59_148.
PackZip create new (overwrite) zip archive from specified file or directory and all subdirs.
ParseCsvLine comma separated string: " value ", value, ' value '.
ParseKeyValue string of multiple key = value; pairs separated by semicolon.
Escape src value for ini-file writing: add 'single' or "double" quotes around if src contains ; semicolon or # hash.
SaveTo copy all from source reader into new outPath file.
ToAlphaNumeric replace all non [A-Z,a-z,0-9] by _ underscore and remove repetitive underscores.
ToIntValue cast src to int if it not nil and type is one of integer or float types.
ToJsonFile convert source to json and write into jsonPath file.
ToJsonIndent return source conveted to json indeneted string.
ToJsonIndentFile convert source to json and write into jsonPath file.
ToUnderscoreTimeStamp converts date-time string to timestamp string: 2021-07-16 13:40:53.882 into 2021_07_16_13_40_53_882 If source string is not a date-time string then return empty "" string.
UnpackZip unpack zip archive into specified directory, creating it if not exist.
UnQuote trim spaces and remove "double" or 'single' quotes around string.
Utf8Reader return a reader to transform file content to utf-8.
# Constants
invalid or dangerous file name or URL characters.
invalid or dangerous file path or URL characters.
length of timestap string.
# Variables
byte order mark bytes.
byte order mark bytes.
byte order mark bytes.
byte order mark bytes.
byte order mark bytes.