Project record1 mention
Originally shared on Hacker News
gossert
A library for adding runtime assertions to Go code, designed so that when assertions are switched off the compiler can completely eliminate them; build tags are required to switch the assertions on.
01 / Source history
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
gossert
A library for adding runtime assertions to Go code, designed so that when assertions are switched off the compiler can completely eliminate them; build tags are required to switch the assertions on.
Posted by @fmstephe · Original source ↗
Source text · @fmstephe · · Source ↗
https://github.com/fmstephe/gossert A library for adding runtime assertions to Go code. It's developed so that when the assertions are switched off the compiler should be able to completely eliminate the assertions. But this requires build tags to switch the assertions on.