diff options
author | Victor Häggqvist <[email protected]> | 2020-04-21 09:34:44 +0200 |
---|---|---|
committer | Victor Häggqvist <[email protected]> | 2020-04-21 09:34:44 +0200 |
commit | d21f39eeebd3586e7faf4d83c7a8e12b6e04c82e (patch) | |
tree | 1793d726cd50cb2d3a4311d8bb38fbf3fbdeda12 /vendor/github.com/gocarina/gocsv/README.md | |
parent | d0a84f15f765383e077fee487af61c0e2e6bdf6d (diff) |
replace ini
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) |