Skip to content
C

Csvutil

csvutil provides fast and idiomatic mapping between CSV and Go (golang) values

by jszwecFree

#660in Entertainment
0In stores

Description

csvutil is a Go package for mapping between CSV data and Go values, with no external dependencies. It is not a CSV parser itself; it works o…

Highlights

  • Marshal and Unmarshal between CSV and Go structs
  • Streaming Decoder and Encoder for large or custom inputs
  • Works with any reader or writer, including the standard csv package
  • Handles missing headers, extra columns and custom separators
  • Custom types, time formats, struct tags and nested structs

Ratings & Reviews

No ratings yet

Be the first to rate Csvutil.

People also visit

N

Node CSV

Full featured CSV parser with simple api and tested against large datasets

Developer Tools
Launch
V

Validator

Go Struct and Field validation, including Cross Field, Cross Struct, Map

Utilities
Launch
S

Stream Parser

PHP7 / Laravel Multi-format Streaming Parser

Entertainment
Launch
S

SmoothCSV

Fast, full-featured CSV editor with SQL queries. ![Freeware][Freeware Icon]

Developer Tools
Launch
R

react-papaparse

The fastest in-browser CSV (or delimited text) parser for React

UI Libraries
Launch
S

SimpleFlatMapper

Fast and Easy mapping from database and csv to POJO

Developer Tools
Launch

Csvutil FAQ

What does csvutil do?

It maps CSV records to Go values and back, using reader and writer interfaces such as Go's standard csv package. It is dependency free.

Is it a CSV parser?

No. It sits on top of a CSV reader or writer, which lets you swap in a different implementation if you need more performance.

How do I install it?

Run go get github.com/jszwec/csvutil. It requires Go 1.18 or later.

Can it handle CSV files without a header?

Yes. If you know the layout, you can define a struct, generate the header from it and pass it to a decoder.

What if my files have extra columns?

Decoder's Unused method reports which header indexes were not used after each Decode call, so you can capture and store the extra values.

What are the best Csvutil alternatives?

Popular alternatives to Csvutil include Stream Parser and Jsonriver. See all Csvutil alternatives

Developer Stuff

Badges