Documentation ¶
Overview ¶
Package strutil provides various utilities for manipulating strings
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PadLeft ¶
PadLeft returns a new string of a specified length in which the beginning of the current string is padded with spaces or with a specified Unicode character.
func PadRight ¶
PadRight returns a new string of a specified length in which the end of the current string is padded with spaces or with a specified Unicode character.
func PrettyTime ¶
PrettyTime returns the string representation of the duration. It rounds the time duration to a second and returns a "---" when duration is 0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.