package
0.0.0-20210223002743-494bf2932f88
Repository: https://github.com/4thel00z/gosint.git
Documentation: pkg.go.dev
# Functions
AddToSMap put a string in a map if is not already present.
CreateDirectory creates a directory in the path passed as argument.
FileExists return true if the path exists.
GetConfigValue take as input a key value and will return the relative value set in the configuration file.
MapSDifference takes two matps [string]bool as agument and return a third map containing m1 - m2.
Panic is a wrapper function on top of builtin panic,if DEBUG_FLAG is true it will print the core dump,otherwise it will print a message and exit with exitcode 1.
RetrieveRequestBody send a GET Request to a domain and return the body casted to string.
SetToSlice convers a set in a slice of strings and then order them.
SimpleQuestion prompt a simple Y/N question.
WriteConfigFile will write default values in the config file specifiend in var_os.go.
WriteOnFile open a file with Append and write on it, if the file doesn't exist will create it.
# Constants
ConfigFile is the name of the configuration file.
# Variables
ConfigFilePath defines the path where the standard configuration file will be written.
DEBUG_FLAG if true will trigger debug actions like coredump printing and more detailed errors.