Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
flashmob
· 8y ago · 0 comments
Perhaps you could try creating a struct with just the common properties, then embed the common struct in all your 'extended' structs. Eg.
http://www.hydrogen18.com/blog/golang-embedding.html
Comments
[–]
holografix
8y ago
That sounds like a bit of a hack. I like it.