[go-nuts] Gremlin go client...

2017-10-21 Thread forfader
I need gremlin client to access JanusGraph graph database from Go. I'll be using the JanusGraphServer configuration. I'm always amazed at the broad range of open source go libraries. This is the first time that I've come up wanting, when looking for a go open source library. I found the follow

[go-nuts] Re: Reading http.Request.Body...

2016-10-11 Thread forfader
Thank you. I figured there was such a function. Just couldn't find it. Michael- On Tuesday, October 11, 2016 at 2:31:41 PM UTC-7, forfader wrote: > > I'm reading the Body of an HTTP request. In my handler I want to chunk the > response body up into fixed size blocks. I d

[go-nuts] Reading http.Request.Body...

2016-10-11 Thread forfader
I'm reading the Body of an HTTP request. In my handler I want to chunk the response body up into fixed size blocks. I doing this using the following code: b := make([]byte, config.Blocksize) for { cnt, err := r.Body.Read(b) if err == io.EOF { break } if err != nil { log.Error("Re