gocarina / gocsv

The GoCSV package aims to provide easy CSV serialization and deserialization to the golang programming language
MIT License
1.95k stars 243 forks source link

Custom convertes of data types that are not in the project scope #239

Open manuelarte opened 1 year ago

manuelarte commented 1 year ago

Imagine I have the following struct

type MyStruct {
  ID mssql.UniqueIdentifier `csv:"id"`
}

GoCSV can't unmarshall the id field because it does not know how to create the mssql.UniqueIdentifier, but I can't create my own converter because that struct is out of my scope, it would be nice to be able to add customs converters in other way.