Comments (2)
To solve your problem, I had no other choice than adding a new API: UnmarshalDecoder, UnmarshalDecoderToChan and UnmarshalDecoderToCallback.
A test has been added so you can have an example of how to use them (the example how to trim spaces might have been handled poorly, feel free to modify it at your convenience).
from gocsv.
@pikanezi how do we implement a trim decoder outside the package since Decoder
interface has no exported methods?
from gocsv.
Related Issues (20)
- new version can't work well HOT 1
- Discard nested struct fields from CSV with MarshalFile HOT 2
- sian product HOT 1
- [BUG] Fails if comma is present in a header name HOT 4
- UnmarshalToCallback leak goroutine HOT 2
- Race condition if multiple threads are parsing CSV and somebody calls SetHeaderNormalizer
- Custom convertes of data types that are not in the project scope
- Custom Parent.Child Combine String
- `getCSVFieldPosition` works wrong if column name contains zero width characters HOT 1
- Header for nested time.Time field is incorrect HOT 1
- Option to skip rows that fail to unmarshal HOT 2
- Instancing global configuration values HOT 1
- time format mistake in README.md and examples/full/main.go HOT 1
- Custom bool marshall HOT 1
- Custom Separator HOT 2
- UnmarshalToCallback without header
- Does this library support the latest go version? HOT 1
- Does this library support the latest go version?
- Custom converter to add euro sign fails HOT 1
- UnmarshalString cannot parse string from MarshalString
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocsv.