From d21f39eeebd3586e7faf4d83c7a8e12b6e04c82e Mon Sep 17 00:00:00 2001 From: Victor Häggqvist Date: Tue, 21 Apr 2020 09:34:44 +0200 Subject: replace ini --- vendor/github.com/gocarina/gocsv/README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'vendor/github.com/gocarina/gocsv/README.md') 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) -- cgit v1.2.3