package
6.2.1+incompatible
Repository: https://github.com/takattila/monitor.git
Documentation: pkg.go.dev
# Functions
Cli issues a command passed as a string slice.
DynamicSizeIEC returns the value of the given number with unit dynamically.
DynamicSizeIECSize returns the size only of the given number with unit dynamically.
DynamicSizeIECUnit returns the unit only of the given number dynamically.
DynamicSizeSI returns the value of the given number with unit dynamically.
DynamicSizeSI returns the size only of the given number with unit dynamically.
DynamicSizeSI returns the unit only of the given number dynamically.
ErrorIfErr prints error message if the 'err' argument is not nil.
FileExists checks if a file exists and is not a directory.
GetConfigPath gives back the path of the service configuration file.
GetNum fetches numbers only from the string.
GetPercent calculates what percentage of the number 'a' is of the number 'b'.
GetProgramDir returns with the directory of the current program.
GetString fetches a alphanumeric characters only.
ReplaceStringInSlice replaces a string in a slice.
SliceContains checks wheter a slice contains a string or not.
TextToBytes converts a test to bytes, for example: TextToBytes("1kB") = 1024.
# Variables
GetConfigPathCmd contains the command that fetches the config path by hostname.