strings

package
v0.0.0-...-5e1152d Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToStr

func BytesToStr(b []byte) string

BytesToStr bytes转string

func Empty

func Empty(val interface{}) bool

func Explode

func Explode(separator, str string) []string

Explode 用一个字符串separator分割另外一个字符串str

func GetHost

func GetHost(r *ghttp.Request) (Host string)

func GetURL

func GetURL(r *ghttp.Request) (Url string)

func Implode

func Implode(separator string, data []string) string

Implode 切片转为指定字符串连接的为字符串

func Rand

func Rand() string

Rand returns a random string.

func RandId

func RandId() string

RandId returns a random id string.

func Randn

func Randn(n int) string

Randn returns a random string with length n.

func Seed

func Seed(seed int64)

Seed sets the seed to seed.

func StrToBytes

func StrToBytes(s string) []byte

StrToBytes string转bytes

func SubStr

func SubStr(str string, offset int, length int) string

SubStr string截取

Types

This section is empty.

Jump to

Keyboard shortcuts

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