[go-nuts] Unit testing slog output

2023-06-13 Thread shan...@gmail.com
In the past when I wanted to 'capture' the log output so that I could check it in a unit test I would 'hijack' os.Stdout like so ``` var osStdout = os.Stdout func MyCode (){ log.SetOutput(osStdout) log.Print("My dog has fleas") } ``` Which could then be tested thus ``` func TestMyCode(t *testi

[go-nuts] tool for ast graph visualization

2023-06-13 Thread alex-coder
Hi All ! Could you please advice me a tool to visualize an ast graph. Thank you. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googleg

Re: [go-nuts] How does golang handles DNS caching

2023-06-13 Thread Kishan Pandey
Thanks, Slawomir, Yeah, gorm connection pooling was the culprit. After I set up the max connection lifetime it started taking the change in FQDN without application restart. We already have a setting for the skip-name-resolve value. On Fri, Jun 9, 2023 at 11:39 AM Slawomir Pryczek wrote: > Prob

[go-nuts] Redfish Event Listener in golang

2023-06-13 Thread Gladiators Squad
Hello everyone, Do we have any redfish-event-listener written in golang? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com

[go-nuts] Re: Why is the reason that the flame graph in go pprof rotated 180 degrees?

2023-06-13 Thread a2800276
180 degrees in respect to what? ;) I'd argue callgraphs have no "natural" orientation, top to bottom is as good as bottom to top or left to right (right to left feels off to me, but I read left to right, so I assume that's just a matter of familiarity) On Monday, 12 June 2023 at 14:26:30 UTC+2