package
0.0.0-20220411094025-f0d8a0904dee
Repository: https://github.com/go-facegit/facegit-rpc.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
ColorLog prints colored log to stdout.
ColorLogS colors log and return colored content.
CurrentUsername returns the username of the current user.
ExecCmd executes system command and return stdout, stderr in string type, along with possible error.
ExecCmdBytes executes system command and return stdout, stderr in bytes type, along with possible error.
ExecCmdDir executes system command in given directory and return stdout, stderr in string type, along with possible error.
ExecCmdDirBytes executes system command in given directory and return stdout, stderr in bytes type, along with possible error.
HexStr2int converts hex format string to decimal number.
Int2HexStr converts decimal number to hex format string.
IsDir returns true if given path is a directory, and returns false when it's a file or does not exist.
IsExist returns true if a file or directory exists.
IsFile returns true if given path exists as a file (i.e.
PowInt is int type of math.Pow function.
ToSnakeCase can convert all upper case characters in a string to underscore format.
Convert any type to string.
# Type aliases
Convert string to specify type.