Categorygithub.com/chrissexton/leftpad
repositorypackage
0.0.0-20181207133115-1e93189d2fff
Repository: https://github.com/chrissexton/leftpad.git
Documentation: pkg.go.dev

# README

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"