Skip to content

Instantly share code, notes, and snippets.

package csvutil_test
import (
"bytes"
"encoding/csv"
"testing"
"github.com/gocarina/gocsv"
"github.com/jszwec/csvutil"
"github.com/yunabe/easycsv"
package csvutil_test
import (
"bytes"
"testing"
"github.com/gocarina/gocsv"
"github.com/jszwec/csvutil"
)
@jszwec
jszwec / main.go
Created December 7, 2017 03:30
main.go with csvutil for github.com/AppliedGo/spreadsheet Raw
package main
import (
"bytes"
"encoding/csv"
"fmt"
"io"
"io/ioutil"
"log"
"os"
package mapping
import "reflect"
// based on 'na_values' from:
// https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html
var nanMap = map[string]struct{}{
"": {},
"#N/A": {},
"#N/A N/A": {},
package main
import (
"bytes"
"crypto/tls"
"flag"
"fmt"
"io"
"io/ioutil"
"log"