1
0
mirror of https://github.com/golang/go synced 2024-11-12 08:10:21 -07:00

encoding/csv: clarify that TrimLeadingSpace can trim the delimiter

Fixes #14464

Change-Id: Iafc21641cca7d35b7a5631cfc94742ee8e7d5042
Reviewed-on: https://go-review.googlesource.com/19861
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Eric Lagergren 2016-02-23 18:19:52 -08:00 committed by Brad Fitzpatrick
parent 039d455f9d
commit 4feb47bc76

View File

@ -99,6 +99,8 @@ var (
// non-doubled quote may appear in a quoted field.
//
// If TrimLeadingSpace is true, leading white space in a field is ignored.
// If the field delimiter is white space, TrimLeadingSpace will trim the
// delimiter.
type Reader struct {
Comma rune // field delimiter (set to ',' by NewReader)
Comment rune // comment character for start of line