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

rune parsed as integer #269

Open
aviplot opened this issue Jan 10, 2024 · 0 comments
Open

rune parsed as integer #269

aviplot opened this issue Jan 10, 2024 · 0 comments

Comments

@aviplot
Copy link

aviplot commented Jan 10, 2024

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!

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

No branches or pull requests

1 participant