I have a CSV file that uses a space as the delimiter. But some of the fields contain a space and those fields are wrapped with double quotes. Any field with a null/empty value is represented as "-". Fields that are not null/empty and do not contain spaces are not wrapped in double quotes. Here's an example of one row in the CSV file.
foobar "foo bar" "-" "-" "-" fizzbuzz "fizz buzz" fizz buzz
Also there are no headers for the CSV file. I was going to use a simple solution such as this one https://stackoverflow.com/a/20769342/3299397 but using strings.Split(csvInput, " ")
wouldn't handle the spaces inside the fields. I've also looked into this library https://github.com/gocarina/gocsv but I'm curious if there's a solution that doesn't use a third-party library.