Go package to left pad a string with a character.
Inspired by the "left-pad" NPM package (and the fiasco that happened after its removal).
go get github.com/keltia/leftpad
import "github.com/keltia/leftpad"
leftpad.Pad("foo", 5) // " foo"
leftpad.Pad("foobar", 8) // " foobar"
leftpad.Pad("foobar", 6) // "foobar"
leftpad.PadChar("foo", 5, 'X') // "XXfoo"