xutils

package
v0.0.0-...-85b3fc2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any2String

func Any2String(v any) (str string)

func Bytes2Str

func Bytes2Str(b []byte) string

func Concat

func Concat(strings ...string) string

func Expr

func Expr(ctx context.Context, rule string, input interface{}) (bool, error)

Expr 处理空规则直接通过

func FilterEmoji

func FilterEmoji(s string) string

func RandomString

func RandomString(l int, str ...string) string

func Retry

func Retry(callback func() error, maxRetries int, interval time.Duration) (err error)

Retry 重试 func 最大次数,间隔

func SBC2DBC

func SBC2DBC(str string) string

func Str2Bytes

func Str2Bytes(s string) []byte

func StrLen

func StrLen(str string) int

func UCFirst

func UCFirst(str string) string

UCFirst 首写字母大写

Types

This section is empty.

Jump to

Keyboard shortcuts

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