You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type ItemBase struct {
Items uint32
Count uint32
RandomAttributes string
Quality uint32
}
type ItemBaseWeight struct {
Items uint32
Count uint32
Pro uint32
}
type AdventureBoxConf struct {
Id uint32 `csv:"id"`
Key *model.ItemBase `csv:"key"`
Items []*model.ItemBaseWeight `csv:"items"`
Broadcast []uint32 `csv:"radio"`
Upgrade uint32 `csv:"upgrade"`
}
with this version: github.com/gocarina/gocsv v0.0.0-20220823132111-71f3a5cb2654 work well.
but github.com/gocarina/gocsv v0.0.0-20221105105431-c8ef78125b99 can not work.
AdventureBoxConf.Key is nil.
Maybe the CSV format is not rigorous enough?
The text was updated successfully, but these errors were encountered:
This may not be useful to you, since I couldn't find a previous version that marshaled to that format. My guess is that the csv is coming from somewhere else. But if you also wanted to output you would also need a custom marshaler and add json struct tags. eg:
csv:
go struct:
with this version: github.com/gocarina/gocsv v0.0.0-20220823132111-71f3a5cb2654 work well.
but github.com/gocarina/gocsv v0.0.0-20221105105431-c8ef78125b99 can not work.
AdventureBoxConf.Key is nil.
Maybe the CSV format is not rigorous enough?
The text was updated successfully, but these errors were encountered: