Running len on an embedded map is returning 0 #5

Open
opened 2024-09-19 00:57:37 +00:00 by lmika · 0 comments
Owner

When a proc returns a struct with an embedded map, such as:

struct MyThing {
   SubThings map[int]string
}

and SubThings has value, running a len on that will return 0, instead of the actual length.

When a proc returns a struct with an embedded map, such as: ``` struct MyThing { SubThings map[int]string } ``` and SubThings has value, running a `len` on that will return 0, instead of the actual length.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lmika/ucl#5
No description provided.