# Functions
Command will run a terminal command with 'sh -c COMMAND' and return stdout and errOut as strings in, out, err := Command("sass assets/scss assets/css/base.css").
ConvertInterface will take all the keys/values from an interface and replace all %type.Key from a string Input: {"name": "%service.Name", "domain": "%service.Domain"} Output: {"name": "Google DNS", "domain": "8.8.8.8"}.
DeleteDirectory will attempt to delete a directory and all contents inside DeleteDirectory("assets").
DeleteFile will attempt to delete a file DeleteFile("newfile.json").
DurationReadable will return a time.Duration into a human readable string // t := time.Duration(5 * time.Minute) // DurationReadable(t) // returns: 5 minutes.
FileExists returns true if a file exists exists := FileExists("assets/css/base.css").
FormatDuration converts a time.Duration into a string.
GetLastLine returns 1 line for a recent log entry.
HashPassword returns the bcrypt hash of a password string.
Http returns a log for a HTTP request.
HttpRequest is a global function to send a HTTP request // url - The URL for HTTP request // method - GET, POST, DELETE, PATCH // content - The HTTP request content type (text/plain, application/json, or nil) // headers - An array of Headers to be sent (KEY=VALUE) []string{"Authentication=12345", ...} // body - The body or form data to send with HTTP request // timeout - Specific duration to timeout on.
InitLogs will create the '/logs' directory and creates a file '/logs/statup.log' for application logging.
Log creates a new entry in the Logger.
No description provided by the author
No description provided by the author
NewSHA1Hash returns a random SHA1 hash based on a specific length.
RandomString generates a random string of n length.
SaveFile will create a new file with data inside it SaveFile("newfile.json", []byte('{"data": "success"}').
Timezoner returns the time.Time with the user set timezone.
ToInt converts a int to a string.
ToString converts a int to a string.
UnderScoreString will return a string that replaces spaces and other characters to underscores UnderScoreString("Example String") // example_string.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author