https://github.com/splace/listreader
Go language parsing of numeric lists. CSV etc.
https://github.com/splace/listreader
csv floating-point golang-library large-dataset parser
Last synced: 3 months ago
JSON representation
Go language parsing of numeric lists. CSV etc.
- Host: GitHub
- URL: https://github.com/splace/listreader
- Owner: splace
- License: mit
- Created: 2016-09-08T22:12:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-13T17:30:00.000Z (over 8 years ago)
- Last Synced: 2024-12-06T22:13:34.402Z (over 1 year ago)
- Topics: csv, floating-point, golang-library, large-dataset, parser
- Language: Go
- Homepage:
- Size: 1.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# listreader
2+ times faster than naive std lib implementation.(using csv.reader or bufio.Scanner)
100MB/s for me, YRMV.
not actually optimised, just uses an inline 'flat' implementation, so should be able to be made faster.
Overview/docs: [](https://godoc.org/github.com/splace/listreader)
Installation:
go get github.com/splace/listreader
Example:
```go
package main
import "strings"
import "fmt"
import "github.com/splace/listreader"
func main(){
source := strings.NewReader(`24.022636656429 55.557392812856 52.228635194467 -31.380903518556 -7.9503676820041 28.357857406239 33.33750296633`)
lr := listreader.NewFloats(source,' ')
values,_ := lr.ReadAll()
fmt.Println(values)
}
```