package
0.0.0-20240314092855-725df8514635
Repository: https://github.com/kiracore/ryokai.git
Documentation: pkg.go.dev

# Functions

CopyFile copies the contents of a file from a source path to a destination path.
CreateFileWithData creates a new file at the specified filePath and writes the given data to it.
GetUser retrieves the current system user.
IsDir checks if the given path represents a directory.
FileExist checks if a file or directory exists at the specified path.
RunCommand executes the given command string in the system's shell and returns its combined standard output and standard error.
Uses net.ParseIP to attempt parsing the input string as an IP address.
ValidatePort converts the input string to an integer and checks if it represents a valid port number.