{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/gitlab.com/stone.code/assert","name":"gitlab.com/stone.code/assert","description":"Package assert provide a single function to emulate C-style asserts.\n\nThe goal of this package is to provide a call that will document and enforce\npreconditions, postconditions, and invariants in code.  Failures should\nonly result from program bugs.  This package should not be used to replace\nproper error handling.\n\nEach assertion documents that a predicate is true when the the assertion is\nexecuted. Depending on the build, that predicate might also be enforced\n(i.e. by terminating the program, or, more gently, by panicking).\nThere are three types of assertion:  (1) preconditions, which document\nconditions (specified as predicates) for calling a function, (2)\npostconditions, which document conditions at the end of a function, and\n(3) invariant, which specify conditions over a particular scope or for\na type.\n\nIf the predicate for an assertion is false, this conditions indicates a bug\nin the code (as opposed to a transient or run-time error).  When enforced,\nassertions are a debugging tool.","version":"v1.1.4","softwareVersion":"v1.1.4","license":"https://spdx.org/licenses/BSD-3-Clause","codeRepository":"https://gitlab.com/stone.code/assert","issueTracker":"https://gitlab.com/stone.code/assert/issues","url":"https://gitlab.com/stone.code/assert","dateCreated":"2021-11-30","dateModified":"2022-08-10","datePublished":"2022-08-10","copyrightYear":2021,"downloadUrl":"https://proxy.golang.org/gitlab.com/stone.code/assert/@v/v1.1.4.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/gitlab.com/stone.code/assert#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/gitlab.com/stone.code/assert"],"https://www.w3.org/ns/activitystreams#likes":1}