tool

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Intv

func Intv(s string) (v int)

Intv 忽略任何错误转换字符串为整数值并返回。如果无法转换,返回值为0

func RandRandSeq

func RandRandSeq() string

RandRandSeq returns a random string with random length (1..127)

func RandSeq

func RandSeq(n int) string

RandSeq returns a random string with specified length 'n'

func RandSeqln

func RandSeqln(n int) string

RandSeqln returns a random string with specified length 'n', and it has a '\n' character tail.

func String

func String(length int) string

String returns a random string with length specified

func StringVariantLength

func StringVariantLength(minLength, maxLength int) string

String returns a random string with length specified

func StringWithCharset

func StringWithCharset(length int, charset string) string

StringWithCharset generate random string

Types

This section is empty.

Jump to

Keyboard shortcuts

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