malisit / kolpa Goto Github PK
View Code? Open in Web Editor NEWA fake data generator written in and for Go
License: MIT License
A fake data generator written in and for Go
License: MIT License
Why not to add the email generation future? I have created a PR #3 with it, also can contribute for others futures like phone number, company names and etc.
I am using go version go1.9 darwin/amd64
and glide (https://github.com/Masterminds/glide) for install kolpa dependencies. But when I run example code in
package main
import (
"fmt"
"github.com/malisit/kolpa"
)
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; Windows 98; Win 9x 4.90; Trident/4.0)
fmt.Println(k.Color()) // Prints Lime #00FF00
fmt.Println(k.Email()) // Prints [email protected]
fmt.Println(k.Phone()) // Prints +55-44-63311072
fmt.Println(k.Gender()) // Prints male
fmt.Println(k.PaymentCard()) // Prints 4083453410931987
fmt.Println(k.LoremSentence()) // Prints "Provident nobis nostrum blanditiis voluptatem animi rerum harum."
}
It output following errors ?
open data/en_US/person_first: no such file or directory
open data/en_US/address: no such file or directory
open data/en_US/user: no such file or directory
open data/en_US/: no such file or directory
open data/en_US/: no such file or directory
open data/en_US/: no such file or directory
female
open data/en_US/payment: no such file or directory
Open Data/En_US/Lorem: No Such File Or Directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory open data/en_US/lorem: no such file or directory.
I have found data folder in vendor directory of Project (It created by Glide).
Could anyone help me to fix this !
@malisit ๐คฃ
Hello, guys, I have implemented a small function for the phone number generation
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.