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

UnmarshalFile method multipart.File support

vahdet opened this issue · comments

UnmarshalFile method only supports *os.File for now. Handling multipart.File also would be great for receiving the file via a web upload.

Oh, btw, thanks for the work :) I liked your custom-csv-tag approach.

Try using the gocsv.Unmarshal method since it takes an io.Reader.

Looks like there is now gocsv.UnmarshalMultipartFile.

c3ede7b