package
2.0.0+incompatible
Repository: https://github.com/syleron/pulseha.git
Documentation: pkg.go.dev
# Functions
*
Check if a file exists
*/.
*
Check if a folder exists.
*
Create folder if it doesn't already exist!
Returns true or false depending on whether the folder was created or not.
DeleteFolder - Remove a folder and its conents.
*
Execute system command.
*
Format IPv6 address with brackets
*/.
*
*/.
*
Get local hostname
TODO: Note: This may break with FQDs
*/.
*
hasPort is given a string of the form "host", "host:port", "ipv6::address",
or "[ipv6::address]:port", and returns true if the string includes a port.
*
Validates whether an address is a CIDR address or not
TODO: Note: Should work with both IPv4 and IPv6
*/.
*
Checks to see if the address is an IPv4 address
*/.
*
Checks to see if the address contains a colon.
*
Checks to see if a port is valid
*/.
*
Load a specific file and return byte code
**/.
*
Makes sure an IPv6 address is properly structured
*/.
*
Function to schedule the execution every x time as time.Duration.
*
Function to return an IP and Port from a single ip:port string
TODO:Note: Works only with IPv4
*/.
*
Function that validates an IPv4 and IPv6 address.
*
Write text to a file
*/.