Documentation ¶
Overview ¶
This package implements the leftpad function, inspired by the NPM (JS) package of the same name. Two functions are defined: import "leftpad" // pad with spacex str, err := LeftPad(s, n) // pad with specified character str, err := func LeftPadStr(s, n, c)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidChar = errors.New("Invalid character")
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.