gocarina / gocsv

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

Use of generics to minimize interface{} #271

Open kishaningithub opened 9 months ago

kishaningithub commented 9 months ago

Given generics implementation is now stable in golang it would be great if the methods like


MarshalChan(c <-chan interface{}, out CSVWriter)
func MarshalCSV(in interface{}, out CSVWriter)
``

etc can change their type signature so that consumers don't encounter runtime surprises as much

Thanks in advance!