Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A Way to generate fake data with custom Tag #17

Open
confusionhill opened this issue Jan 18, 2023 · 1 comment
Open

A Way to generate fake data with custom Tag #17

confusionhill opened this issue Jan 18, 2023 · 1 comment

Comments

@confusionhill
Copy link

Hello, I wanted to know if it's possible to generate a fake data with custom tag?
My struct is

type Lecture struct {
FullName string faker:"name"
}

expected output

{"full_name": "value"}

@muhfaris
Copy link

hi @confusionhill you can try this https://pkg.go.dev/github.com/go-faker/faker/v4#example-package-CustomFaker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants