smartystreets / scanners Goto Github PK
View Code? Open in Web Editor NEWVariations on the bufio.Scanner interface over various types of sources (csv, strings.Fields, fixed-width, etc...).
License: Other
Variations on the bufio.Scanner interface over various types of sources (csv, strings.Fields, fixed-width, etc...).
License: Other
I have a client that sends a large file without headers. We have an agreed upon header map, so the file is consistent, they just choose to not send the headers in the file. I would like to inject the headers from a config without having to read the file first in another process.
The easiest way would be to append the headers in *ColumnScanner.headerRecord []string, but since it's an unexported field I cannot do that.
Any thought into making that field exported or adding this functionality in a func?
Hi ๐. I like this project, and would like to add some examples and documentation so anyone looking can quickly see what it can do for them.
I've started doing that in my fork, https://github.com/zacharysyoung/scanners/tree/MoreDocumentation.
I'm open to suggestions for matters like general direction of effort, or style, if you think this would make the project/repo better.
Thanks.
P.S., I also noticed that in https://github.com/smartystreets/scanners/blob/master/csv/column_scanner.go#L15C1-L17C20 the option FieldsPerRecord(0)
looks redundant as the underlying reader's FieldsPerRecords defaults to 0. I was playing with that (tests pass), but I can pull that out of any documentation changes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.