# Functions
AppendNewLine appends the given data at the end of the file.
CompleteURL parses and validates the given URL.
Fail prints out the error struct if STEPDEBUG is true otherwise it just prints out the error message.
FileExists is a wrapper on os.Stat that returns false if os.Stat returns an error, it returns true otherwise.
GetKeyDetailsFromCLI gets the key pair algorithm, curve, and size inputs from the CLI context.
OpenFile calls os.OpenFile method and returns the os.File wrapped.
ReadAll returns a slice of bytes with the content of the given reader.
ReadFile returns the contents of the file identified by name.
ReadInput from stdin if something is detected or ask the user for an input using the given prompt.
ReadPasswordFromFile reads and returns the password from the given filename.
ReadString reads one line from the given io.Reader.
ReadStringPasswordFromFile reads and returns the password from the given filename.
WriteFile wraps os.WriteFile with a prompt to overwrite a file if the file exists.
WriteSnippet writes the given data on the given filename.
# Constants
DefaultECCurve sets the default curve for EC to P-256.
DefaultRSASize sets the default key size for RSA to 2048 bits.
# Variables
ErrFileExists is the error returned if a file exists.
ErrIsDir is the error returned if the file is a directory.
SnippetFooter is the header of a step generated snippet in a configuration file.
SnippetHeader is the header of a step generated snippet in a configuration file.