Parse Space Delimited Files With Spaces In Fields : <p>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.</p>

<pre><code>foobar "foo bar" "-" "-" "-" fizzbuzz "fizz buzz" fizz buzz
</code></pre>

<p>Also there are no headers for the CSV file. I was going to use a simple solution such as this one <a href="https://stackoverflow.com/a/20769342/3299397">https://stackoverflow.com/a/20769342/3299397</a> but using <code>strings.Split(csvInput, " ")</code> wouldn't handle the spaces inside the fields. I've also looked into this library <a href="https://github.com/gocarina/gocsv" rel="nofollow noreferrer">https://github.com/gocarina/gocsv</a> but I'm curious if there's a solution that doesn't use a third-party library.</p>
