An open API service indexing awesome lists of open source software.

https://github.com/rhymond/gopad

Optimized String Right/Left Pad
https://github.com/rhymond/gopad

golang leftpad pad padding rightpad

Last synced: 12 months ago
JSON representation

Optimized String Right/Left Pad

Awesome Lists containing this project

README

          

# Go Pad
Optimized String Right/Left Pad

[![Go Report Card](https://goreportcard.com/badge/github.com/rhymond/gopad)](https://goreportcard.com/report/github.com/rhymond/gopad)
[![Coverage Status](https://coveralls.io/repos/github/Rhymond/go-money/badge.svg?branch=master)](https://coveralls.io/github/Rhymond/gopad?branch=master)
[![Build Status](https://travis-ci.org/Rhymond/go-money.svg?branch=master)](https://travis-ci.org/Rhymond/gopad)
[![GoDoc](https://godoc.org/github.com/Rhymond/go-money?status.svg)](https://godoc.org/github.com/Rhymond/gopad)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Usage
-
```Go
import "github.com/rhymond/gopad"

gopad.Left("foo", 5) // " foo"
gopad.Right("foobar", 8) // "foobar "
gopad.Left("foobar", 6) // "foobar"
```
Contributing
-
Thank you for considering contributing!
Please use GitHub issues and Pull Requests for Contributing.

License
-
The MIT License (MIT). Please see License File for more information.

[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](https://github.com/Rhymond/gopad)