[go-nuts] Re: tool for ast graph visualization

2023-06-14 Thread alex-coder
Xa, context is the king on a field :-) You gave a good sample, and I would like to get ast for GO code in a json format for further processing. четверг, 15 июня 2023 г. в 01:45:20 UTC+3, ben...@gmail.com: > Hi Alex, could you please give a bit more context about what language or > kind of AS

[go-nuts] Re: Unit testing slog output

2023-06-14 Thread shan...@gmail.com
I think that perhaps a bit more explanation might be helpful I have an established pattern of capturing log messages so that i can check them in unit tests. (The code/test first example) I want to do that with slog (where slog emits a message and I capture that message and compare it in the tes

[go-nuts] Re: tool for ast graph visualization

2023-06-14 Thread ben...@gmail.com
Hi Alex, could you please give a bit more context about what language or kind of AST you're referring to, and what you mean by visualize? As Vraj mentioned, Graphviz is good for the general case. If you just want to "visualize" Go AST in a text format, you can use go/ast.Print: https://pkg.go.d

[go-nuts] Re: Unit testing slog output

2023-06-14 Thread Tamás Gulácsi
github.com/UNO-SOFT/zlog/v2 NewT(t).SLog() returns an *slog.Logger that uses t.Log for printing. But maybe I don't understand your real problem. shan...@gmail.com a következőt írta (2023. június 14., szerda, 2:14:27 UTC+2): > In the past when I wanted to 'capture' the log output so that I coul

[go-nuts] testing: add a global cleanup function.

2023-06-14 Thread Pierre Durand
Currently we can register a cleanup function on a single test. This function is executed when the test finishes. But there is no way to execute a cleanup function after all the tests of a package are executed. Use case: let's say I want to build a "test helper" library that is used by other pro

[go-nuts] Software Heritage Golang archival - Call for public review

2023-06-14 Thread Benoit Chauvet
Hello, Software Heritage [1] aims at building the universal archive of source code, and is already is the world's largest source code archive. Our mission is to Collect, Preserve and Share all the publicly available source code. Thanks to the Octobus [2] contribution under the aegis of a NLNet

[go-nuts] AWS SDK v2 and SSM session

2023-06-14 Thread Xabi Martí
Hi there, and thanks for having me here, this is my first post and I expect is not going to be the last. The question is that I've a problem with AWS SDK v2, I'm trying to run a session with a long-running command with SSM Document "AWS-StartNonInteractiveCommand" and get the result and leave i

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

2023-06-14 Thread Sven Anderson
a2800276 schrieb am Di. 13. Juni 2023 um 11:59: > 180 degrees in respect to what? ;) > In respect to a flame. ;-) -- 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

[go-nuts] Re: tool for ast graph visualization

2023-06-14 Thread Brian Candler
Aside: draw.io also has functionality like graphviz for the web 2.0 generation: https://drawio-app.com/blog/automatically-create-draw-io-diagrams-from-csv-files/ On Wednesday, 14 June 2023 at 10:01:10 UTC+1 Vraj Reshamdalal wrote: > Hi alex-coder! > You can try using Graphviz. > Graphviz (https:

[go-nuts] Re: tool for ast graph visualization

2023-06-14 Thread Vraj Reshamdalal
Hi alex-coder! You can try using Graphviz. Graphviz (https://graphviz.org/) is a powerful open-source graph visualization software. It provides a collection of tools for visualizing and manipulating graph structures (such as AST graphs). To generate and visualize a graph using Graphviz, you can

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

2023-06-14 Thread Vladimir Varankin
Hey there, In this issue, back then (https://github.com/google/pprof/issues/359), I linked my interpretation for the reasoning to switch from flame graph to "icicle graph". Just as you wrote, in some (many) cases, the investigations starts from the bottom of the graph, forcing a user to scroll