Re: [go-nuts] How to break-out of martini middleware

2020-03-14 Thread Dan Kortschak
Note that Martini is not maintained anymore and the original author had a fair bit to say about the merits or otherwise of the packages (via the wayback machine since codegangsta.io is no longer live):

Re: [go-nuts] How to break-out of martini middleware

2020-03-14 Thread 'Benjamin' via golang-nuts
I don’t need to read the stackoverflow. And I don’t know martini. Middlewares and Handler are all can break the pipeline of http request. If martini is not designed like this, it is not well designed. Maybe the authors of martini do not have real production software expriences. Big companies like

[go-nuts] Re: go tip: random high CPU usage on VirtualBox

2020-03-14 Thread Ian Lance Taylor
On Sat, Mar 14, 2020 at 1:56 AM Mhd Shulhan wrote: > > Pada tanggal Sab, 14 Mar 2020 06.15, Ian Lance Taylor > menulis: >> >> On Fri, Mar 13, 2020 at 1:05 AM Mhd Shulhan wrote: >> > >> > >> > >> > > On 12 Mar 2020, at 13.13, Mhd Shulhan wrote: >> > > >> > > >> > >> My question is any one have

[go-nuts] How to break-out of martini middleware

2020-03-14 Thread alex
I am looking for answer to this SO overflow question: https://stackoverflow.com/questions/60679922/how-to-break-out-of-martini-middleware In essence, I am wondering how to send the response, and *not* invoke any of the subsequent middleware that is declared as part of the chain for that

Re: [go-nuts] Re: Checking if two map variables refer to the same map

2020-03-14 Thread 'Axel Wagner' via golang-nuts
On Sat, Mar 14, 2020 at 2:47 AM wrote: > However I always need a map that is initialized in future downpath code. > ( i use it in a range statement that just noops if it is empty) > It will also noop if the map is nil . > This code has to be optimized in

[go-nuts] Re: go tip: random high CPU usage on VirtualBox

2020-03-14 Thread Mhd Shulhan
Pada tanggal Sab, 14 Mar 2020 06.15, Ian Lance Taylor menulis: > On Fri, Mar 13, 2020 at 1:05 AM Mhd Shulhan wrote: > > > > > > > > > On 12 Mar 2020, at 13.13, Mhd Shulhan wrote: > > > > > > > > >> My question is any one have idea how to debug this so I can provide > more > > >> detailed

Re: [go-nuts] Re: Checking if two map variables refer to the same map

2020-03-14 Thread roger peppe
In this particular case, couldn't you just check for len(m) == 0 ? i.e. assume that any zero size map is the shared one? On Sat, 14 Mar 2020, 01:46 , wrote: > I have a use for this that is not covered it seems. > > So basically I am runnning a code that may or may not create a map > depending