Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialization for arrays of rune not a possibility? #335

Open
1 task done
OliwerXi opened this issue Feb 6, 2023 · 0 comments
Open
1 task done

Serialization for arrays of rune not a possibility? #335

OliwerXi opened this issue Feb 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@OliwerXi
Copy link

OliwerXi commented Feb 6, 2023

Version

1.19 (ini - v1.67.0)

Describe the bug

For every save of an ini file, the fields that are an array of rune is set to empty.

To reproduce

type Example struct {
  Prop1 []rune `ini:"prop.1"`
}

func Gen(path string) {
  def := Example{ Prop1: []rune("abc") }
  file := ini.Empty()
  ini.ReflectFrom(file, &def)
  file.SaveTo(path) // current result -> prop.1 = 
}

Expected behavior

Expected result would be to split every character with a symbol of sorts and then set it as the value.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@OliwerXi OliwerXi added the bug Something isn't working label Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant