diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/github.com/gocarina/gocsv/README.md | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vendor/github.com/gocarina/gocsv/README.md b/vendor/github.com/gocarina/gocsv/README.md index c3fae62..e606ac7 100644 --- a/vendor/github.com/gocarina/gocsv/README.md +++ b/vendor/github.com/gocarina/gocsv/README.md @@ -36,8 +36,9 @@ package main import ( "fmt" - "gocsv" "os" + + "github.com/gocarina/gocsv" ) type Client struct { // Our example struct, you can use "-" to ignore a field @@ -104,10 +105,7 @@ func (date *DateTime) String() (string) { // Convert the CSV string as internal date func (date *DateTime) UnmarshalCSV(csv string) (err error) { date.Time, err = time.Parse("20060201", csv) - if err != nil { - return err - } - return nil + return err } type Client struct { // Our example struct with a custom type (DateTime) |