bgadrian / fastfaker Goto Github PK
View Code? Open in Web Editor NEWFast, concurrent fake data generator for any structure or type.
Home Page: https://godoc.org/github.com/bgadrian/fastfaker
License: GNU General Public License v3.0
Fast, concurrent fake data generator for any structure or type.
Home Page: https://godoc.org/github.com/bgadrian/fastfaker
License: GNU General Public License v3.0
Currently the data has only ASCII (1byte character) data.
Most likely the real projects will have Unicode strings, with multi-language support, and by mocking the data with only a subset of the Unicode may lead to future problems.
Todo:
Currently the /data files only contains English words.
To decide:
It seems that http://pipsum.com/ is not longer working, we need to find a replacement.
The main idea is to send to fastfaker a template and it will replace its content with random data.
Example:
fastFaker.Global().Template("My name is ~name~", "~")
will return a string that replaces the variable name
with the result of the function Name()
. The string can be anything from a HTML template to a marshalled JSON/YML.
The functionality is similar ith the Generate()
current function, but I wrote a more general and optimal version in other repo Pseudoservice as a wrapper, but I think it belongs here https://github.com/bgadrian/pseudoservice/blob/master/CUSTOM.md
Why ?
The current template system {person.name}
is limited to the lists from /data, while the new Template system will take advantage of all faker
public functions (over 130).
The first step was to make more functions available as a simple func() string
ones 24c236b
Find a way to keep the package import path and functionality the same, while moving most of the files in one or more sub packages.
If we split it in more packages, the problem is a hard nut because all the submodules (person, vehicle, number ...) must share a common state, and that is the rand.Rand generator and also be a composite in the Faker
structure.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.