package
0.0.0-20240919144758-04d94ccb2297
Repository: https://github.com/overmindtech/pterm.git
Documentation: pkg.go.dev

# Functions

AddTitleToLine adds a title to a site of a line ex: "─ This is the title ──────".
AddTitleToLineCenter adds a title to the center of a line ex: "─ This is the title ──────".
CenterText returns a centered string with a padding left and right If width is 0, it will be calculated automatically.
No description provided by the author
Exit calls the current exit function.
GetStringMaxWidth returns the maximum width of a string with multiple lines.
No description provided by the author
NewCancelationSignal for keeping track of a cancelation.
Percentage calculates percentage.
PercentageRound returns a rounded Percentage.
No description provided by the author
ReturnLongestLine returns the longest line with a given separator.
RunsInCi returns true if the current build is running on a CI server.
WithBoolean helps an option setter (WithXXX(b ...bool) to return true, if no boolean is set, but false if it's explicitly set to false.

# Variables

DefaultExitFunc is the default function used to exit the program.
RandomStrings contains a list of random strings to use while testing.

# Type aliases

ExitFuncType is the type of function used to exit the program.