Skip to content

encoding/csv: getting a line number of current record when using csv.Reader #26679

Closed
@alser777

Description

@alser777

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.10.3

Does this issue reproduce with the latest release?

1.10.3 is the latest

What did you do?

I have used csv.Reader to parse a CSV file and I wanted to report an error to user in case some record contained invalid data. I also wanted to include a line number of invalid record in an error message.

What did you expect to see?

some method that would return a line number where current record starts

What did you see instead?

There is no way to get a line number of current record.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions