Y
Hacker News
new
|
ask
|
show
|
jobs
by
packetlost
703 days ago
Go structs sorta behave this way if you put a "parent" struct in the first field of a struct definition. They are, of course, not maps though. But a map with statically defined keys/values/types is
basically
a struct.