stringx

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes

func FromBytes(bs []byte) string

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 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

Types

type Strings

type Strings []string

func Split

func Split(raw string, sep string) Strings

func (Strings) Head

func (ss Strings) Head() string

func (Strings) Head2

func (ss Strings) Head2() (h0, h1 string)

func (Strings) Head3

func (ss Strings) Head3() (h0, h1, h2 string)

func (Strings) Head4

func (ss Strings) Head4() (h0, h1, h2, h3 string)

func (Strings) HeadT

func (ss Strings) HeadT() (string, Strings)

Jump to

Keyboard shortcuts

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