Re: [go-nuts] For range loop variable passing by reference to go routine causes memory leak

2022-10-08 Thread davy zhang
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: >

[go-nuts] For range loop variable passing by reference to go routine causes memory leak

2022-10-07 Thread davy zhang
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/

[go-nuts] [ANN]Route aws lambda requests using existing standard http router library such as mux or bone.

2018-03-11 Thread davy zhang
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