str

package
v1.3.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any2String

func Any2String(v interface{}) (string, error)

func IsEmpty

func IsEmpty(str string) bool

func IsEmptySlice

func IsEmptySlice(v []string) bool

func IsNotEmpty

func IsNotEmpty(str string) bool

func IsNotEmptySlice

func IsNotEmptySlice(v []string) bool

func MustAny2String

func MustAny2String(v interface{}) string

func Size

func Size(str string) int

func SliceAny2Str

func SliceAny2Str(vs []interface{}) ([]string, error)

func SliceByteEqual

func SliceByteEqual(v1, v2 []byte) bool

func SliceStr2Any

func SliceStr2Any(vs []string) []interface{}

func SliceStrEqual

func SliceStrEqual(v1, v2 []string) bool

SliceStrEqual 该方法会影响原来的排序

func SliceStrEqualStrict

func SliceStrEqualStrict(v1, v2 []string) bool

func Str2Any

func Str2Any(v string) interface{}

func Str2Bytes

func Str2Bytes(v string) []byte

func SubStr added in v1.3.4

func SubStr(s string, start, end int) string

SubStr 字符串截取, 遵循左闭右开原则

func SubStrRevWithCount added in v1.3.8

func SubStrRevWithCount(s string, count int) string

SubStrRevWithCount 字符串从后截取,截取后n个字符

func SubStrWithCount added in v1.3.8

func SubStrWithCount(s string, count int) string

SubStrWithCount 字符串从前截取,前n个字符

Types

This section is empty.

Jump to

Keyboard shortcuts

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