Documentation
¶
Index ¶
- Constants
- Variables
- func CreateDirectory(dirname string)
- func FileExists(file string) bool
- func GetConfigValue(key string) string
- func RetrieveRequestBody(domain string) string
- func SetToSlice(oldset mapset.Set) []string
- func SimpleQuestion(question string) bool
- func WriteConfigFile(key string, value string)
- func WriteOnFile(filename string, text string)
Constants ¶
View Source
const ConfigFile = "gosint"
ConfigFile is the name of the configuration file
Variables ¶
View Source
var ( // ConfigFilePath defines the path where the standard configuration file will be written ConfigFilePath = os.Getenv("HOME") + "/.config/" )
Functions ¶
func CreateDirectory ¶
func CreateDirectory(dirname string)
CreateDirectory creates a directory in the path passed as argument
func GetConfigValue ¶
GetConfigValue take as input a key value and will return the relative value set in the configuration file
func RetrieveRequestBody ¶
RetrieveRequestBody send a Get Request to a domain and return the body casted to string
func SetToSlice ¶
func SetToSlice(oldset mapset.Set) []string
SetToSlice convers a set in a slice of strings and then order them
func SimpleQuestion ¶
SimpleQuestion prompt a simple Y/N question
func WriteConfigFile ¶
WriteConfigFile will write default values in the config file specifiend in var_os.go
func WriteOnFile ¶
WriteOnFile open a file with Append and write on it, if the file doesn't exist will create it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.