# Functions
CheckArgsConfigFormat check config format is valid.
CheckArgsLogLevel check log level is valid.
CheckConfig call to validate all fields by ozzo-validation.
ConvertByteToString convert byte array to string with specific charset, such as UTF8.
Exist check if the given path is exists of file or directory.
FileTrans move file form `sourcePath` to `targetPath`.
GenBackupFilename generate backup file name.
GenTempFile generate temp file path.
IsDir check if the given path is a directory or not.
IsFile check if the given path is a file or not.
Mkdir create a new directory from the given path.
ReadConfig read config file from given path and file format, support `json`, `yaml` and `toml`.
No description provided by the author
No description provided by the author
No description provided by the author
Run execute app with the config once.
RunInDaemon execute app with the config by cron, and stop until shutdown the app.
ValidCronExpression custom validator to validate cron expression for ozzo-validation.
ValidDir custom validator to validate directory path for ozzo-validation.
ValidFilePath custom validator to validate filepath for ozzo-validation.
ValidTarget custom validator to validate export db&collection in MongoDB for ozzo-validation.
# Constants
BackupFileName define backup temp file name.
GB18030 uft-8 charset.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Name define app name.
TagCmd define variable for parse data in golang tags.
TempDir define a directory to save temp time.
UFT8 uft-8 charset.
Version define app version.
# Structs
Args all commands struct.
BaseCmd base command struct.
Config config file struct.
MongoTarget command options for target MongoDB db name and collection name.
# Type aliases
Charset define a type as string.