An open API service indexing awesome lists of open source software.

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.

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: [![GoDoc](https://godoc.org/github.com/splace/listreader?status.svg)](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)
}
```