So I have two big structs which after embedding many other structs they end up having the same fields but with different struct tags.
Is it safe to do a type conversion between them? Any drawbacks?
Example: https://play.golang.org/p/QTtTnmchpU8
评论:
TheMerovius:
It's safe to do and doesn't really have any drawbacks. In fact, that's specifically why that rule was introduced.
