8000 GitHub - splace/listreader: Go language parsing of numeric lists. CSV etc.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

splace/listreader

Repository files navigation

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

Installation:

 go get github.com/splace/listreader

Example:

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)
}

About

Go language parsing of numeric lists. CSV etc.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0