strings

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2String

func Bytes2String(b []byte) string

Bytes2String ... @author Cloud|2021-12-12 18:24:20 @param b []byte ... @return string ...

func CreateCaptcha

func CreateCaptcha(num int) string

生成指定位数的随机数

func MD5

func MD5(str string) string

MD5

func Nl2br

func Nl2br(str string, isXhtml bool) string

Nl2br nl2br() \n\r, \r\n, \r, \n

func StrFirstToLower

func StrFirstToLower(str string) string

字符串首字母转成小写

func StrFirstToUpper

func StrFirstToUpper(str string) string

字符串首字母转成大写

func String2Bytes

func String2Bytes(s string) []byte

String2Bytes ... @author Cloud|2021-12-12 18:24:23 @param s string ... @return []byte ...

func SubString

func SubString(str string, begin, length int) string

截取字符串(支持中文)

Types

This section is empty.

Jump to

Keyboard shortcuts

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