e:
>
> On 08/10/2022 22:56, davy zhang wrote:
> > Original post on stackoverflow:
> >
> > https://stackoverflow.com/questions/73985794/for-range-loop-variable-passing-by-reference-to-go-routine-causes-memory-leak
> >
> >
> > Code for reproducing the problem:
>
Original post on stackoverflow:
https://stackoverflow.com/questions/73985794/for-range-loop-variable-passing-by-reference-to-go-routine-causes-memory-leak
Code for reproducing the problem:
https://go.dev/play/p/7Xzx1Aauzhh
go version go1.19 darwin/amd64
go tool pprof http://localhost:6060/
https://github.com/davyzhang/agw
A small library I used for many of my projects.
When I use aws lambda to handle the requests from apigateway, it is pretty
annoying to handle different requests with a single lambda function due to
the fact that apigateway does not pass all the HTTP information