gopad

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2017 License: MIT Imports: 2 Imported by: 0

README

Go Pad

Optimized String Right/Left Pad

Go Report Card Coverage Status Build Status GoDoc

Usage

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Left

func Left(s string, l int, ch ...rune) string

Left pads out the lefthand-side of strings

func Right(s string, l int, ch ...rune) string

Right pads out the righthand-side of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL