rune parsed as integer
aviplot opened this issue · 0 comments
aviplot commented
If a struct
has a rune
type, the conversion is failed with strconv.ParseInt
(Probably correct).
Since there are no differences, a rune can be considered as an int.
I have no suggestion on how to solve that...
Code example:
type Node struct {
NIndex Nindex `csv:"NINDEX"`
NType rune `csv:"NTYPE"`
NInfo Ninfo `csv:"NINFO"`
}
and the input contains a letter, lets say a
.
Thanks!