strings

package
v1.3.16 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCaptcha

func CreateCaptcha(num int) string

生成指定位数的随机数

func MD5

func MD5(str string) string

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 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