strings

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(s string) bool

IsEmpty returns true if the string is empty.

func IsEmptyTrimmed

func IsEmptyTrimmed(s string) bool

IsEmptyTrimmed returns true if the string is empty or contains only whitespace.

func LenTrimmed

func LenTrimmed(s string) int

LenTrimmed returns the number of runes in the string after trimming whitespace.

func ToLower

func ToLower(s string) string

ToLower returns a copy of the string with all Unicode letters mapped to their lower case.

func ToTitle

func ToTitle(s string) string

ToTitle returns a copy of the string with all Unicode letters mapped to their title case.

func ToUpper

func ToUpper(s string) string

ToUpper returns a copy of the string with all Unicode letters mapped to their upper case.

func UTF8Len

func UTF8Len(s string) int

UTF8Len returns the number of runes in the string.

func UTF8LenTrimmed

func UTF8LenTrimmed(s string) int

UTF8LenTrimmed returns the number of runes in the string after trimming whitespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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