Comments (5)
Hello,
What you're doing setting the Comma to '\t' then you're setting it to ',' and it does not work, have I understood it right?
from gocsv.
In my program, two kinds of csv files using comma or tab are parsed at the same time.
But only one reader can be set via your library and so it is impossible tha gocsv parses both of them.
from gocsv.
Yes, this is also a problem that I have with this library :( Unfortunately when using two different readers in 2 goroutines it won't work because it's global.
from gocsv.
did anyone found how to change comma type while using this library
if err := gocsv.UnmarshalFile(csvFile, &clients); err != nil { // Load clients from file
reqlog.Println("error", err)
return
}
from gocsv.
The problem is the usage of global variables which is generally bad coding style. Someone should make a pull request to fix this.
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.