gocarina / gocsv

The GoCSV package aims to provide easy CSV serialization and deserialization to the golang programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rune parsed as integer

aviplot opened this issue · comments

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!