gofaker

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT

README

GoFaker

GoFaker is library for generating fake data in Go. It provides an API for generating the following fake data:

  • organization:
    • INN - INN of private person
    • INNLE - INN of legal entity
    • OGRN - OGRN of legal entity
    • OGRNIP - OGRN of individual entrepreneur
    • SNILS - SNILS

Installation

To install GoFaker, simply run the following command in your terminal:

go get -u github.com/Gwinkamp/gofaker

Usage

Here's an example of how to use GoFaker to generate fake data:

package main

import (
	"fmt"

	"github.com/Gwinkamp/gofaker/org"
)

func main() {
	faker := org.NewFaker()

	inn := faker.INN()
	innLE := faker.INNLE()
	ogrn := faker.OGRN()
	ogrnIP := faker.OGRNIP()
	snils := faker.SNILS()

	fmt.Println(inn.String())
	fmt.Println(innLE.String())
	fmt.Println(ogrn.String())
	fmt.Println(ogrnIP.String())
	fmt.Print(snils.String())
}

Contributing

I welcome contributions to GoFaker! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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