Show HN: Should – Expressive Assertions for Go

github.com

4 points by andrey-1201 18 hours ago

Hey folks. Hope you're all doing well.

We released should a few weeks ago. It's a lightweight assertion library for Go with zero dependencies and expressive error messages. It was made to make debugging test failures easier, with a very simple and straightforward API.

We’re keeping things lean, focusing on practical asserts and a smooth developer experience. The current version (v0.1.0) is stable and ready for real-world use while we continue to improve it based on feedback.

Take a look at the docs and let us know what you think. Appreciate any feedback or suggestions.

Repo: https://github.com/Kairum-Labs/should

bradhe 18 hours ago

Ah this is interesting. I've been blindly using this library for the past 6 years: https://github.com/stretchr/testify.

  • andrey-1201 18 hours ago

    Glad you found it interesting. Testify is good, but it doesn’t provide very clear error messages and it comes with dependencies.