str

package
v0.0.0-...-8b25bc4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RandomStringModNumberPlusLetter           = 1
	RandomStringModNumberPlusLetterPlusSymbol = 2
	RandomStringModNumber                     = 3
)

Variables

This section is empty.

Functions

func CamelToSnake

func CamelToSnake(s string) string

CamelToSnake 驼峰转蛇形

func GenCode

func GenCode(n int) string

func GenRandomStr

func GenRandomStr() string

func GetRandomString

func GetRandomString(length int64, mod uint32) string

func HashCode

func HashCode(s string) uint32

func InvertStr

func InvertStr(s string) string

InvertStr A string flips the string around the middle character axis

func IsAllEmpty

func IsAllEmpty(args ...string) bool

func IsAllLetter

func IsAllLetter(s string) bool

func IsAnyEmpty

func IsAnyEmpty(args ...string) bool

func IsCapitalizedFirst

func IsCapitalizedFirst(s string) bool

func IsSameByRegroup

func IsSameByRegroup(s1, s2 string) bool

IsSameByRegroup Whether the two strings are the same after sorting and reorganization

func Md5

func Md5(s string) string

func MixStrDecode

func MixStrDecode(s string) string

MixStrDecode decrypting confused string

func MixStrEncode

func MixStrEncode(s string) string

MixStrEncode confuse string to encrypt them

func ReplaceBlank

func ReplaceBlank(s string) string

func Sha256

func Sha256(dst string) string

func Sha256WithSalt

func Sha256WithSalt(dst string, salt string) string

func SnakeToCamel

func SnakeToCamel(s string) string

SnakeToCamel 蛇形转驼峰

func ToLowerFirst

func ToLowerFirst(s string) string

ToLowerFirst Make the first letter of a string lowercase

func ToUpperFirst

func ToUpperFirst(s string) string

ToUpperFirst Capitalize the first letter of a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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