jaswdr / faker

:rocket: Ultimate fake data generator for Go with zero dependencies
https://pkg.go.dev/github.com/jaswdr/faker
MIT License
566 stars 59 forks source link

Add Json generator #147

Closed jaswdr closed 1 year ago

jaswdr commented 1 year ago

Description

Adding new JSON generator to generate JSON objects both in string and map[string]interface{} formats.

Are you trying to fix an existing issue?

70

Go Version

$ go version
go version go1.20.7 linux/amd64

Go Tests

$ go test
2023/08/18 13:31:50 Error while requesting https://loremflickr.com/300/200 : request failed
2023/08/18 13:31:50 Error while creating a temp file: temp file creation failed
2023/08/18 13:31:51 Error while requesting https://randomuser.me : request failed
2023/08/18 13:31:51 Error while creating a temp file: temp file creation failed
PASS
ok      github.com/jaswdr/faker 2.690s