Documentation ¶
Overview ¶
Package strutil contains various string manipulation utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pad ¶
Pad returns a string of length n that is centered and filled with the string p. If the length of s is already greater than or equal to n, the original string is returned. If n is negative, behavior is undefined. If an odd number of padding characters is required, the extra characters are added to the left.
func PadLeft ¶
PadLeft returns a string of length n that is filled with the string p on the left. If the length of s is already greater than or equal to n, the original string is returned. If n is negative, behavior is undefined.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.