stringx

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 6 Imported by: 26

README

stringx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAllBlank

func IsAllBlank(ss ...string) bool

IsAllBlank Checks if all of the CharSequences are empty ("") or whitespace only.

func IsAllEmpty

func IsAllEmpty(ss ...string) bool

IsAllEmpty Checks if all of the strings are empty ("")

func IsAnyBlank

func IsAnyBlank(ss ...string) bool

IsAnyBlank Checks if any of the string are empty ("") or whitespace only.

func IsAnyEmpty

func IsAnyEmpty(ss ...string) bool

IsAnyEmpty Checks if any of the strings are empty ("")

func IsBlank

func IsBlank(s string) bool

IsBlank Checks if a string is empty ("") or whitespace only.

func IsEmpty

func IsEmpty(s string) bool

IsEmpty checks if a string is empty ("")

func IsNotBlank

func IsNotBlank(s string) bool

IsNotBlank Checks if a string is not empty ("") and not whitespace only.

func IsNotEmpty

func IsNotEmpty(s string) bool

IsNotEmpty Checks if a string is not empty ("")

func Remove

func Remove(s string, chars string) string

Remove takes a string candidate and a string of chars to remove from the candidate.

func ToString added in v1.0.1

func ToString(i interface{}) string

From github.com/spf13/cast/cast.go Copyright (c) 2014 Steve Francia. All rights reserved. ToString casts an interface to a string type.

func ToStringE added in v1.0.1

func ToStringE(i interface{}) (string, error)

From github.com/spf13/cast/cast.go Copyright (c) 2014 Steve Francia. All rights reserved. ToStringE casts an interface to a string type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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