Following will convert golang struct to a 99design graphql schema type.
|
|
If you want to change case on selected lines you can use following.
|
|
Above regular expression will remove the json tags from the line 3 to 6.
|
|
Next two steps are field name to camel case and data type to be capitalize.