Skip to content

struct: reflect []rune as a string - #407

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

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

Conversation

@team-humaki

Copy link
Copy Markdown

ReflectFrom left []rune keys empty (unsupported type '[]int32'). MapTo had the same gap.

Treat []int32 (including []rune) as a Unicode string so a field like []rune("abc") writes prop.1 = abc and maps back.

Fixes #335

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.

Serialization for arrays of rune not a possibility?

1 participant