3 pages tagged with "go"
Mermaid support for Go Archer
March 26, 2025
Added to Go Archer an option to output dependency graphs in mermaid format instead of DOT. Just add --format mermaid option. It has certain issues, in particular, styles only look good with the light theme. I might add an option to remove the styles altogether.
read more
Go Archer
January 04, 2025
For a long time I have been using
github.com/loov/goda whenever I wanted to build
a graph of dependencies for a Go project. It is an excelent tool, but I wanted
some additional functionality. Usually I use the graph to identify problematic
dependencies; for example, if there is a dependency on a dat…
read more
Error handling in defer
October 07, 2023
I see periodically people handling errors in deferred calls like this:
func Do() (r Result, err error) {
// ...
defer func() {
err = multierr.Append(err, f.Close())
}()
// ...
}
or another variant:
func Do() (err error) {
// ...
defer func() {
err1 = f.Close(…
read more