[go-nuts] Re: pprof CPU profiles missing inlined frames

2024-02-17 Thread Prashant V
Ahh, I simplified the test too much, my mistake. I modified the example and verified that the profile does capture the inline function: 3.95s 79.16% 79.16% 3.95s 79.16% main.modify (inline) 1.04s 20.84% 100% 4.99s 100% main.main Than

Re: [go-nuts] help

2024-02-17 Thread Sunday Ajayi
Hi guys, Please I am having a little issue with my go project using docker. I set up my Postgres db in docker with my go app but it is unable to connect. Please what could be the issue? I will share the docker-compose file and the main.go here main.go package main import ( "database/sql" "enco

Re: [go-nuts] Need help to close/shutdown http server when underlying socket fd explicitly bind used

2024-02-17 Thread binbinschen00
Thanks Reto, that works! If I want to bind the socket fd to another interface for the same http server (meaning same address:port), do I need to close/shutdown the existing server first and start a new one? Is there a way to just modify the socket bind without close/shutdown the socket? Thank

[go-nuts] help

2024-02-17 Thread Pilar Garcia
hi everyone. my name is pilar. im trying to learn coding for the first time in my life..im so lost can anyone let me know how to even begin on this mission. please any advise will be greatly appreciated. you folks have a great day cant waint to hear from ya -- You received

Re: [go-nuts] Re: Range over int

2024-02-17 Thread poweredbycitizen
I agree with you. Powered By Citizen  On Saturday, February 17, 2024, 1:19 AM, Kurtis Rader wrote: It's not just changing `k` inside the loop body that makes the transformation invalid -- your observation also applies to modifying `i` inside the loop body. Modifying either variable inside t

Re: [go-nuts] XML Canonicalization and signing

2024-02-17 Thread Shivli Srivastava
Hi Karlovsly Thanks for the prompt reply . Let me try it out and get back to you. Kind regards, Shivli On Thursday, February 15, 2024 at 2:26:43 PM UTC+5:30 Karlovsky Alexey wrote: > It's a strange task, because for xml there is a XMLDSIG standard for > signing XML documents. I recommend tryi

[go-nuts] Re: pprof CPU profiles missing inlined frames

2024-02-17 Thread 'Keith Randall' via golang-nuts
This is a problem with your test. pprof is correct here. Since you never use n, when double is inlined its body is compiled completely away. On Thursday, February 15, 2024 at 10:18:07 PM UTC-8 Prashant V wrote: > Is it expected that CPU profiles taken with pprof don't include inlined > frames?