package
0.0.0-20230103183739-b6caf7638108
Repository: https://github.com/gemini/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.
GetStringMaxWidth returns the maximum width of a string with multiple lines.
No description provided by the author
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
RandomStrings contains a list of random strings to use while testing.