kolpa:为Go编写的虚假数据生成器

时间:2021-02-03 14:25:37
【文件属性】:
文件名称:kolpa:为Go编写的虚假数据生成器
文件大小:56KB
文件格式:ZIP
更新时间:2021-02-03 14:25:37
go golang user-agent datetime random-generation 科尔帕 kolpa是为Go编写的虚假数据生成器。 目前,它可以为以下实例生成伪造数据, 名称 地址 电话号码 电子邮件地址 性别 支付卡 Lorem益智文字 颜色 约会时间 用户代理 安装 在命令行上运行go get github.com/malisit/kolpa 。 用法 package main import ( "fmt" "github.com/malisit/kolpa" "time" ) func main () { k := kolpa . C () // Initiate kolpa fmt . Println ( k . FirstName ()) // Prints John fmt . Println ( k . Address ()) // Prints 729 Richmond Springs Suite 949, Luisborough, VT 85700-5554 fmt . Println ( k . UserAgent ()) // Prints Mozilla/5.0 (compatible; MSIE 5.0; Window

网友评论