Open coventry opened 3 years ago
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?
gen.StructStrict
gens
rt
"NotThere"
struct_test.go::TestStruct
Sure, any PR is welcomed ;)
Was just about to request this :+1: :smile:
@jonaslagoni, please try #77.
I'm thinking of writing a
gen.StructStrict
, which panics ifgens
contains keys which are not fields onrt
, so for instance the"NotThere"
key instruct_test.go::TestStruct
would cause a failure. Would you be likely to accept this as a PR?