[go-nuts] Re: Pagination

2017-06-18 Thread tural . esger
Thank you very much! On Monday, July 21, 2014 at 11:19:46 PM UTC+4, Jason Hutchinson wrote: > > I put together a really simple pager here: > http://play.golang.org/p/rM2cw-g2u7 > > It implements one of my favorite pagination formats, which always shows > the first and last pages, current pages,

[go-nuts] Re: production PDF to text service

2017-06-18 Thread Glen Newton
Could you list the 2 packages? Glen On Sunday, June 18, 2017 at 6:27:40 PM UTC-4, svj...@gmail.com wrote: > > Can someone with experience with the problem suggest a best package for > building a production PDF to text conversion service in Go? I am working > with Go and Google App Engine. A

[go-nuts] RFC: Blog post: How to not use an HTTP router

2017-06-18 Thread 'Axel Wagner' via golang-nuts
Hey gophers, in an attempt to rein in the HTTP router epidemic, I tried writing down a) why I think *any* router/muxer might not be a good thing to use (much less write) and b) what I consider good, practical advice on how to route requests instead. It's not rocket science or especially novel,

[go-nuts] production PDF to text service

2017-06-18 Thread svjk24
Can someone with experience with the problem suggest a best package for building a production PDF to text conversion service in Go? I am working with Go and Google App Engine. A cursory Google search brings up two packages, the first considerably more popular but with external dependencies I

Re: [go-nuts] RFC: Blog post: How to not use an HTTP router

2017-06-18 Thread Kevin Conway
If I understand correctly, you're describing a simplified version of https://twistedmatrix.com/documents/current/web/howto/using-twistedweb.html which provides the concept of "path" by having a system that generates a graph of resource nodes than can be rendered. Routing to any specific endpoint

[go-nuts] Re: speedup image/png encode/decode

2017-06-18 Thread Vasiliy Tolstov
2017-06-18 19:47 GMT+03:00 Vasiliy Tolstov : > Hi. I'm writing vnc server implementation (mostly for proxy between > client and real server). > My first version can only raw encoding, but now i'm writing TightPng > support and check results. As i see when i'm connect to my

[go-nuts] Re: Test, test coverage & httptest.Server

2017-06-18 Thread Jérôme LAFORGE
Hello, Can I consider that no workaround? Thx Le dimanche 21 mai 2017 09:48:01 UTC+2, Jérôme LAFORGE a écrit : > > Hello, > I create a classic rest server with mongo database. Some of my tests are > made like this : > - at the begining of test, I launch mononDB into docker contener (thx to >

[go-nuts] speedup image/png encode/decode

2017-06-18 Thread Vasiliy Tolstov
Hi. I'm writing vnc server implementation (mostly for proxy between client and real server). My first version can only raw encoding, but now i'm writing TightPng support and check results. As i see when i'm connect to my proxy from noVNC (that supports TightPng encoding), my proxy use 400-500% CPU

Re: [go-nuts] Re: Test, test coverage & httptest.Server

2017-06-18 Thread Damien Lespiau
You should be able to do that with: http://damien.lespiau.name/2017/05/building-and-using-coverage.html HTH, -- Damien On 18 June 2017 at 17:49, Jérôme LAFORGE wrote: > Hello, > Can I consider that no workaround? > Thx > > Le dimanche 21 mai 2017 09:48:01 UTC+2,

Re: [go-nuts] Re: Set LD_LIBRARY_PATH while executing go test

2017-06-18 Thread lakshmibc8
Hello, Is there any flags which can be used? other than explicitly setting the env variable? On Friday, 16 June 2017 18:08:24 UTC+5:30, messju mohr wrote: > > ... and a shell agnostic way would be: > > $ env LD_LIBRARY_PATH=/foo/bar go test > > (see the man page of env(1)) > > regards > >

Re: [go-nuts] Re: Set LD_LIBRARY_PATH while executing go test

2017-06-18 Thread Uli Kunitz
There is no documented flag for go test to set the LD_LIBRARY_PATH. From my point of view there is also no need for it. On Monday, June 19, 2017 at 6:36:24 AM UTC+2, lakshmi balachandran wrote: > > Hello, > > Is there any flags which can be used? other than explicitly setting the > env

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-18 Thread fusi . enrico . maria
Hi Dave, this is what I did... and using a normal fd Read() to a "normal" file pointer works, returning the proper size of the frame. So I am not using libraries anymore I was just confused because when you google, it seems the libraries I was using are "the" solution to the problem