leftpad

package
v0.0.0-...-84f5767 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(s string, size int) string

Format takes in a string and an int and returns the string left-padded with spaces to the length of the int. If the string is already longer than the specified length, the original string is returned.

func FormatRune

func FormatRune(s string, size int, r rune) string

FormatRune takes in a string, an int, and a rune and returns the string left-padded with the specifed rune to the length of the int. If the string is already longer than the specified length, the original string is returned.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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