stringUtils

package
v0.0.0-...-e03c1e8 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPostfix

func AddPostfix(str string, width int, ch string) string

func Base64Decode

func Base64Decode(str string) string

func BoolToPass

func BoolToPass(b bool) string

func Convert2Utf8IfNeeded

func Convert2Utf8IfNeeded(data string) string

func FindInArr

func FindInArr(str string, arr []string) bool

func HashPassword

func HashPassword(pwd string) string

func IsGBK

func IsGBK(data []byte) bool

func ItoStr

func ItoStr(i interface{}) (ret string)

func MatchExpr

func MatchExpr(expect string, actual string, langType string) bool

func Md5

func Md5(str string) (ret string)

func NewUuid

func NewUuid() string

func NewUuidWithSep

func NewUuidWithSep() string

func ParseInt

func ParseInt(str string) (ret int)

func ParseUint

func ParseUint(str string) (ret uint)

func RandStr

func RandStr(n int) string

func SnakeCase

func SnakeCase(str string) string

func ToStr

func ToStr(str interface{}) (ret string)

func TrimAll

func TrimAll(str string) string

func UcAll

func UcAll(str string) string

func UcFirst

func UcFirst(str string) string

func UnescapeUnicode

func UnescapeUnicode(raw []byte) (ret string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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