Help us shape the future of Go! Take the 2026 Go Developer Survey

genid

package module
v1.0.2-0...-0e963fd Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: MIT Imports: 1 Imported by: 0

README

gen-id

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

Installation

go get github.com/srlemon/gen-id

如果网速过慢:

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

Example

package main

import (
	"fmt"
	"github.com/srlemon/gen-id"
	"github.com/srlemon/gen-id/generator"
)

func main()  {
	// 生成总的信息
	fmt.Println(gen_id.NewGeneratorData(nil))
	// 分个单独获取
	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(isFullAge *bool) (ret *generator.GeneratorData)

NewGeneratorData

Types

This section is empty.

Directories

Path Synopsis
example
noe command

Jump to

Keyboard shortcuts

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