Skip to content

struct: map slices of pointers - #406

Open
team-humaki wants to merge 1 commit into
go-ini:mainfrom
team-humaki:struct-pointer-elem-slices
Open

team-humaki wants to merge 1 commit into
go-ini:mainfrom
team-humaki:struct-pointer-elem-slices

Conversation

@team-humaki

Copy link
Copy Markdown

MapTo rejected []*T fields (unsupported type '[]ptr') because slice mapping only handled non-pointer element kinds.

Unwrap pointer element types and set each index to a new pointer, so allowshadow []*string and delimited []*int map like their value-slice counterparts.

Fixes #371

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: pointer slices not recognized

1 participant