str

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any2Char added in v1.4.1

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

func Char2Any added in v1.4.1

func Char2Any(v string) interface{}

func Char2Bytes added in v1.4.1

func Char2Bytes(v string) []byte

func Char2Int added in v1.4.1

func Char2Int(v string) (int, error)

func Char2Int32 added in v1.4.1

func Char2Int32(v string) (int32, error)

func Char2Int64 added in v1.4.1

func Char2Int64(v string) (int64, 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 MustAny2Char added in v1.4.1

func MustAny2Char(v interface{}) string

func MustChar2Int added in v1.4.1

func MustChar2Int(v string) int

func MustChar2Int32 added in v1.4.1

func MustChar2Int32(v string) int32

func MustChar2Int64 added in v1.4.1

func MustChar2Int64(v string) int64

func Size

func Size(str string) int

func SliceByteEqual

func SliceByteEqual(v1, v2 []byte) bool

func SliceStrEqual

func SliceStrEqual(v1, v2 []string) bool

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

func SliceStrEqualStrict

func SliceStrEqualStrict(v1, v2 []string) bool

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