Open
Description
Describe the bug
Parsing the following:
[mysection]
mykey=90
When using MapTo results in:
set field "mykey": unsupported type "uint8"
If the type is uint8
:
type MySection struct {
MeyKey uint8 `json:"mykey" ini:"mykey"`
}
To Reproduce
Just load the config and use MapTo
:
cfg, _ := ini.Load([]byte(`
[mysection]
mykey=90
`))
mySec := &MySection{}
err := cfg.Section("mysection").MapTo(mySec)
Expected behavior
MapTo
should be able to parse values as uint8
.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here, or any suggestion to fix the problem.
Activity