mocker

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 4 Imported by: 0

README

mocker

用于数据模拟、测试

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NameFirstArray = []string{"冰", "飞", "浩", "银", "朱", "娜", "勇", "洁", "杰", "伟", "立", "宇", "文", "华", "丽", "芳", "明", "灵", "燕", "小", "鑫", "玉", "龙", "一", "欣", "星", "东", "雅", "嘉", "邪", "红", "云", "心", "荣", "梅", "静", "琳", "雪", "明", "娟", "丹", "清", "磊", "玲", "敏", "陈", "亮", "颖", "然", "学"}
View Source
var NameLastArray = []string{"王", "李", "张", "刘", "陈", "杨", "黄", "吴", "赵", "周", "徐", "孙", "马", "朱", "胡", "林", "郭", "何", "高", "罗", "郑", "梁", "谢", "宋", "唐", "许", "邓", "冯", "韩", "曹", "曾", "彭", "萧", "蔡", "潘", "田", "董", "袁", "于", "余", "叶", "蒋", "杜", "苏", "魏", "程", "吕", "丁", "沈", "任", "姚", "卢", "傅", "钟", "姜", "崔", "谭", "廖", "范", "汪", "陆", "金", "石", "戴", "贾", "韦", "夏", "邱", "方", "侯", "邹", "熊", "孟", "秦", "白", "江", "阎", "薛", "尹", "段", "雷", "黎", "史", "龙", "陶", "贺", "顾", "毛", "郝", "龚", "邵", "万", "钱", "严", "赖", "覃", "洪", "武", "莫", "孔"}

2013年前100名姓氏,排名按顺序

Functions

func Bool

func Bool() bool

Bool 生成随机bool值

func Caps

func Caps() string

Caps 生成随机大写字母

func Intn

func Intn(num int) int

RandString 生成随机字符串

func LowerCase

func LowerCase() string

LowerCase 生成随机小写字母

func Name

func Name() string

func NameFirst

func NameFirst() string

func NameLast

func NameLast() string

func String

func String(num int) string

String 生成随机字符串

func StringBytes

func StringBytes(num int) []byte

StringBytes 生成随机字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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