The most popular Go dependency is…

27 points by thiht


mperham

Doesn't surprise me that it's testify. It does surprise me that the Go team don't see the value in a set of one-line assertion helpers. Makes tests much cleaner and easier to read IMO.

hwayne

Come for the title, stay for a cool use of graph databases!

mariusor

github.com/pkg/errors@v0.9.1 because it's a module that was deprecated long ago, I find it interesting to know how much it's still used in the wild.

I suspect that part of the reason might be that it offered a way to store a stack trace with an error, unlike the new errors module that is the official replacement.

nemith

Speaking of testify is there a good alternative that have less dependencies? Testify's indirect dependencies is more than half of my modules deps.

https://github.com/matryer/is

https://github.com/earthboundkid/be

But these are not widely used at all.

matttproud

I am one of the maintainers of https://google.github.io/styleguide/go/.

If you are curious on my thoughts on why I am not particularly bullish on assertion frameworks AND having multiple of them at once, you might find this useful: https://matttproud.com/blog/posts/testing-frameworks-and-mini-languages.html.