Be Careful with Go Struct Embedding
Embedding structs can quietly mask deeper-nested fields: a duplicate field name isn’t ambiguous unless it appears at the same ‘depth’, meaning your program may choose an unintended value.
https://mattjhall.co.uk/posts/be-careful-with-go-struct-embedding.html
Post #162
30K
mattjhall.co.uk Be Careful with Go Struct Embedding - Matt Hall The gophers nested too greedily and too deep.
- 👍 98
- 🔥 30
- ❤ 25
- 👎 24
- 🤔 24
- 👏 19
- 💩 18
- 🤯 16