mock

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Number  = "number"
	Char    = "char"
	Chinese = "zh"
	En      = "en"
	LowerEn = "en_lower"
	UpperEn = "en_upper"
)

Variables

This section is empty.

Functions

func GetRand

func GetRand(lang string, length int) string

func Mock

func Mock(data any)

Mock faker data support struct, []struct Support Only For: string,int,uint64,int64,float64,[]string,[]int,[]uint64,[]int64,[]float64 CJSON,CTime,CDate other types will ignore

func SetDataSize

func SetDataSize(size int)

SetDataSize set slice data size

func SetRandomLength

func SetRandomLength(len int)

SetRandomLength set data random length

func SetSliceSize

func SetSliceSize(size int)

SetSliceSize set data slice size

Types

This section is empty.

Jump to

Keyboard shortcuts

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