An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/negrel/assert

Package assert provides a set of comprehensive debug assertions. The following is a complete example using assert in a function: Debug assertions are programming statements that help developers catch logical errors during development by verifying assumptions about the program's state. They're typically used to check conditions that should always be true during normal program execution. If the condition is false, the assertions is either wrong or there is a programming error. In both case, program panics if it was compiled with the `assert` tags (`go build -tags assert ./path/to/my/package`) Every assertion function also takes an optional string message as the final argument, allowing custom error messages to be appended to the message the assertion method outputs.

Ecosystem
proxy.golang.org
Latest Release
v0.5.0
about 1 year ago
Versions
8
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/negrel/assert
spec
License MIT
Namespace github.com/negrel
First Release over 2 years ago
Last Synced 1 day ago
Keywords
assert debug go golang
Repository
Stars 27 on GitHub
Forks 1 on GitHub