Skip to content

gen.StructStrict, which errors if gens contains keys the target struct does not contain? #76

@coventry

Description

@coventry

I'm thinking of writing a gen.StructStrict, which panics if gens contains keys which are not fields on rt, so for instance the "NotThere" key in struct_test.go::TestStruct would cause a failure. Would you be likely to accept this as a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions