xstring

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MulanPSL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InArrayPath

func InArrayPath(url string, arr []string) bool

====================================================================== * * 功能:模糊匹配路径 * ======================================================================

func InArrayString

func InArrayString(s string, arr []string) bool

====================================================================== * * 功能:在字符串数组中 是否 存在 该字符串 * ======================================================================

func IsEmpty

func IsEmpty(val string) bool

func RemovePrefix

func RemovePrefix(s string, prefix string) string

func RemoveSuffix

func RemoveSuffix(s string, suffix string) string

func SetPrefix

func SetPrefix(s string, prefix string) string

func SetSuffix

func SetSuffix(s string, suffix string) string

func Utf8StringLength

func Utf8StringLength(str string) int

func Utf8TruncateText

func Utf8TruncateText(text string, max int, omission string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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