str

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5String

func Md5String(s string, multi ...string) string

Md5String md5 strings

func PasswordSlatMD5

func PasswordSlatMD5(password, slat string) string

PasswordSlatMD5 md5 pwd & slat

func RandAlphaNumString

func RandAlphaNumString(strLen int, lower ...bool) string

RandAlphaNumString rand x len string

func RandNumCode

func RandNumCode(strLen int) string

RandNumCode rand number verify code, max len 20

func Substr added in v0.2.8

func Substr(str string, start, length int) string

Substr if start < 0, desc, if arg invalid, return str [start,start+length)

func Substring added in v0.2.8

func Substring(str string, start, end int) string

Substring if start < 0, desc, if arg invalid, return str [start,end)

Types

This section is empty.

Jump to

Keyboard shortcuts

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