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

vdl: add the ability to specify go struct tags via the vdl.config file. #170

Merged
merged 2 commits into from
Nov 9, 2020

Conversation

cosnicolaou
Copy link
Contributor

@cosnicolaou cosnicolaou commented Nov 9, 2020

This PR adds support for specifying go struct tags via the vdl.config file. The example below will add the tag json:"ja,omitempty" to TestStruct.A.

config = vdltool.Config{
        Go: {
                StructTags: map[string][]vdltool.GoStructTag{
                        "TestStruct": []vdltool.GoStructTag{
                                {Field: "A", Tag: `json:"ja,omitempty"`},
                        }
                },
        },
}

@cosnicolaou cosnicolaou merged commit d79ab5f into master Nov 9, 2020
@cosnicolaou cosnicolaou deleted the cos-add-struct-tags branch November 13, 2020 22:36
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

Successfully merging this pull request may close these issues.

1 participant