Registry / testing / bxcodec-faker

bxcodec-faker

JSON →
library2.0.1+incompatiblegogounverified

Generates fake data for Go structs, useful for testing and seeding databases.

go get github.com/bxcodec/faker
INSTALL
IMPORT
SIG · BXCODEC-FAKER
B
bxcodec-faker
testinggov2.0.1+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

faker
github.com/bxcodec/faker

Fills a struct with fake data using faker tags.

package main import ( "fmt" "github.com/bxcodec/faker" ) type User struct { Name string `faker:"name"` Email string `faker:"email"` } func main() { var user User err := faker.FakeData(&user) if err != nil { panic(err) } fmt.Printf("%+v\n", user) }
Debug
Known issues
breakingVersion 2.0.1+incompatible uses a different API than v1; the import path remains the same but function signatures changed.
fix
Use v1 (github.com/bxcodec/faker/v1) if you need the old API, or update your code to match v2.
affects: >=2.0.0
Upgrade
Version history
2.0.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
bxcodec-faker — go get bxcodec-faker · libregistry