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:
parent
039d455f9d
commit
4feb47bc76
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user