All work

assert-lib

Go assertions with logging by default and an explicit crash-on-failure option.

Status
maintained
Built with
Go

System

My Go assertion library, assert-lib, logs and continues by default. It provides deferred assertions; Text, JSON, and YAML formatters; optional instance handlers; silent mode; debug and verbose stack-trace modes; and testing and production presets.

Constraints

  • Structured logging with flush controls
  • Silent checks suppress logging in selected paths

Decisions

  • Crashing requires explicit opt-in.
  • Package-level functions use Function Options to compose behavior.

Evidence

Related systems

  • faults-go

    Application faults with stable codes across process boundaries.

    Go
  • errbuilder-go

    A Go builder that attaches project-defined codes and details to errors.

    Go