package
0.7.0
Repository: https://github.com/clivern/peanut.git
Documentation: pkg.go.dev

# Functions

Base64Decode decodes 64 encoded string.
Base64Encode encodes a string.
ClearDir removes all files and sub dirs.
ConvertToJSON convert object to json.
DeleteDir deletes a dir.
DeleteFile deletes a file.
DirExists reports whether the dir exists.
EnsureDir ensures that directory exists.
EnsureTrailingSlash ensure there is a trailing slash.
Exec run a shell command.
FileExists reports whether the named file exists.
FilterFiles filters files list based on specific sub-strings.
GenerateUUID4 create a UUID.
GetHostname gets the hostname.
GetVal gets a value from a hash map.
InArray check if value is on array.
IsEmpty validate if string is empty or not.
LoadFromJSON update object from json.
MergeMaps merges two maps.
NewMap creates a new instance of Map.
PathExists reports whether the path exists.
Rand gets a random number.
ReadFile get the file content.
RemoveStartingSlash removes any starting slash.
RemoveTrailingSlash removes any trailing slash.
StoreFile stores a file content.
TimeInSec time period in seconds.
Unset remove element at position i.

# Structs

Map type.