Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Allow ability to use json tag to get lower case names #81

Open
kyprifog opened this issue Dec 12, 2019 · 2 comments
Open

Allow ability to use json tag to get lower case names #81

kyprifog opened this issue Dec 12, 2019 · 2 comments

Comments

@kyprifog
Copy link

kyprifog commented Dec 12, 2019

Structs in Go have to have upper case names in order to be public but in json you can get around this by passing the tag: `json: name_lower`

Is there a way to do something similar with faker so that field names don't have to always be upper case?

@bxcodec
Copy link
Owner

bxcodec commented Dec 13, 2019

Hmm.. interesting.

I haven't tested it yet. Have you tested it?

I wonder if that's possible, but it will need time to research this. I might need someone's help if possible. If not, I will take a look at this when I'm free.

@kyprifog
Copy link
Author

kyprifog commented Dec 16, 2019

FTR I tried that but it didn't work, id have to spend a bit more time knowing how the library works to know if it made sense for it to work. I want to just be able to produce fake data with a lower case character. May be other ways to achieve the same result.

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

No branches or pull requests

2 participants