No description
Find a file
2025-10-22 17:25:09 -04:00
go.mod create go module 2025-10-22 17:25:09 -04:00
go.sum create go module 2025-10-22 17:25:09 -04:00
leftpad.go initial commit 2016-03-24 13:49:34 +00:00
leftpad_test.go initial commit 2016-03-24 13:49:34 +00:00
README.md fixed readme 2016-03-24 13:52:20 +00:00

LeftPad

LeftPad is a wrapper porting the ever useful left-pad package from Javascript to Go.

  1. uses existing, production ready, code from javascript
  2. 100% not trolling
go get -u github.com/jamescun/leftpad

Usage

str := leftpad.LeftPad("foo", 6, " ")
// => "   foo"