Re: [go-nuts] Type dependency graphs?

2018-05-27 Thread mrx
Very cool! I'll for sure investigate this closer, thanks a lot Rohit Jain. Regards, Patrik Iselind On Sat, May 26, 2018 at 7:34 AM Rohit Jain wrote: > https://github.com/TrueFurby/go-callvis > > This is a really neat tool > > On Wednesday, May 23, 2018, Patrik

Re: [go-nuts] Rate controlling the Go http server

2018-02-02 Thread mrx
On Fri, Feb 2, 2018 at 1:28 PM, Henrik Johansson wrote: > You can either use one of the existing other routers that have meddleware > support or you could wrap your handlers in another handler much like this: > > handle("/foo",wrapHandler(rateLimiter, realHandler)) > > func

Re: [go-nuts] Rate controlling the Go http server

2018-02-02 Thread mrx
be as outlined above however. > > On Fri, Feb 2, 2018, 15:40 mrx <patrik@gmail.com> wrote: > >> On Fri, Feb 2, 2018 at 1:28 PM, Henrik Johansson <dahankz...@gmail.com> >> wrote: >> >>> You can either use one of the existing other routers that have >>>

Re: [go-nuts] Re: ioutil.ReadAll()

2018-02-14 Thread mrx
On Wed, Feb 14, 2018 at 10:30 AM, Axel Wagner <axel.wagner...@googlemail.com > wrote: > > On Wed, Feb 14, 2018 at 10:01 AM mrx <patrik@gmail.com> wrote: > >> >> On Tue, Feb 13, 2018 at 5:26 PM, Axel Wagner < >> axel.wagner...@googlemail.com&g

Re: [go-nuts] Re: ioutil.ReadAll()

2018-02-14 Thread mrx
On Tue, Feb 13, 2018 at 5:26 PM, Axel Wagner wrote: > Not very, but it does depend on the details. For example, you might > provide your own http.Transport for the client to use, or even your own > net.Conn. > Using ioutils.ReadAll() on a HTTP request means to me

Re: [go-nuts] Unused code warnings

2018-01-24 Thread mrx
On Tue, Jan 23, 2018 at 2:53 PM, Paul Jolly wrote: > Take a look at unused: > > https://github.com/dominikh/go-tools > > That will help you to eliminate unused code pre compile time. > Thanks a lot, that will help for sure! // Patrik -- You received this message because you

Re: [go-nuts] A Go Const suggester?

2018-03-28 Thread mrx
Thanks, there seems to be a tool already for most things in Go, just wonderful! Patrik Iselind On Wed, Mar 28, 2018 at 10:54 AM, Ian Davis wrote: > On Wed, 28 Mar 2018, at 8:32 AM, Patrik Iselind wrote: > > Is there such a tool that can go through a GoLang code base and