strutil

package
v0.0.0-...-86de5ac Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LeftPad

func LeftPad(str, pad string, length int) string

LeftPad pads a string with a given character to a given length

Example: leftPad("hello", " ", 10) // " hello"

func Reverse

func Reverse(input string) (output string)

func Transpose

func Transpose(input []string) []string

Transpose takes a slice of strings and returns a slice of strings where each string is a column of the original

Types

This section is empty.

Jump to

Keyboard shortcuts

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