genid

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: MIT Imports: 1 Imported by: 0

README

说明

本组件是基于github.com/srlemon/gen-id的核心功能进行修改,调整底层对数据随机的方案

gen-id

一个身份证、名字、邮箱、地址、手机号码等随机生成的sdk

Installation

go get gitee.com/dn-jinmin/gen-id

如果网速过慢:

export GO111MODULE=on
export GOPROXY=https://goproxy.io
go get github.com/srlemon/gen-id

Example

package main

import (
	"fmt"
	"gitee.com/dn-jinmin/gen-id"
	"gitee.com/dn-jinmin/gen-id/generator"
)

func main()  {
	// 生成总的信息
	fmt.Println(gen_id.NewGeneratorData())
	// 分个单独获取
	g:=new(generator.GeneratorData)
	fmt.Println(g.GeneratorPhone())
	fmt.Println(g.GeneratorName())
	fmt.Println(g.GeneratorIDCart())
	fmt.Println(g.GeneratorEmail())
	fmt.Println(g.GeneratorBankID())
	fmt.Println(g.GeneratorAddress())
}

Statement

本项目用于开发环境,涉及商业用途用本人无关

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGeneratorData

func NewGeneratorData() (ret *generator.GeneratorData)

NewGeneratorData

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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