xstrings

package
v0.0.0-...-f0771b7 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Center

func Center(text string, size int) string

Center justifies the text in the center

func IsBlank

func IsBlank(text string) bool

IsBlank returns true if the string is blank (all whitespace)

func IsEmpty

func IsEmpty(text string) bool

IsEmpty returns true if the string is empty

func IsNotBlank

func IsNotBlank(text string) bool

IsNotBlank returns true if the string is not blank

func IsNotEmpty

func IsNotEmpty(text string) bool

IsNotEmpty returns true if the string is not empty

func Left

func Left(text string, size int) string

Left justifies the text to the left

func Length

func Length(text string) int

Length counts the input while respecting UTF8 encoding and combined characters

func Reverse

func Reverse(text string) string

Reverse reverses the input while respecting UTF8 encoding and combined characters

func Right(text string, size int) string

Right justifies the text to the right

Types

This section is empty.

Jump to

Keyboard shortcuts

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