{"id":17473697,"url":"https://github.com/zanzythebar/assert-lib","last_synced_at":"2025-04-10T04:54:52.371Z","repository":{"id":258237377,"uuid":"873115165","full_name":"ZanzyTHEbar/assert-lib","owner":"ZanzyTHEbar","description":"A lightweight assertion library for Go.","archived":false,"fork":false,"pushed_at":"2024-10-29T13:21:16.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T09:32:17.885Z","etag":null,"topics":["assert","assertions","assertions-library","go","golang","systems-programming"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZanzyTHEbar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-15T16:15:20.000Z","updated_at":"2024-10-29T13:21:20.000Z","dependencies_parsed_at":"2024-12-07T18:41:46.442Z","dependency_job_id":"dc6b87d8-ee86-4adb-b4ad-14c68a8eb451","html_url":"https://github.com/ZanzyTHEbar/assert-lib","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"05713f60c8cb9a9242a6751b1f722589d1b61743"},"previous_names":["zanzythebar/assert-lib"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZanzyTHEbar%2Fassert-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZanzyTHEbar%2Fassert-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZanzyTHEbar%2Fassert-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZanzyTHEbar%2Fassert-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZanzyTHEbar","download_url":"https://codeload.github.com/ZanzyTHEbar/assert-lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161255,"owners_count":21057553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assert","assertions","assertions-library","go","golang","systems-programming"],"created_at":"2024-10-18T18:06:29.598Z","updated_at":"2025-04-10T04:54:52.363Z","avatar_url":"https://github.com/ZanzyTHEbar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Assert Go\n\nA lightweight assertion library for Go, designed for systems and real-time programming with structured logging and flush controls.\n\n## Installation\n\n```bash\ngo get github.com/ZanzyTHEbar/assert-lib\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"github.com/ZanzyTHEbar/assert-lib\"\n)\n\nfunc main() {\n    handler := assert.NewAssertHandler()\n    \n    handler.Assert(context.TODO(), false, \"This should fail\")\n}\n```\n\nCheck out the [examples](/examples/) directory for usage examples.\n\n## Features\n\n- **Assertions**: Assert, Nil, NotNil, NoError, Never.\n- **Flush Management**: Control output flushes with AssertFlush.\n- **Context-Based Logging**: Attach structured logging to your assertion calls.\n- **Custom Loggers**: Use your own logger with the AssertHandler interface.\n\nWorks very well with my [errbuilder-go](https://github.com/ZanzyTHEbar/errbuilder-go) library.\n\n## Examples\n\n```bash\ngo run examples/basic_assertion.go\ngo run examples/deferred_assertions.go\ngo run examples/custom_exit.go\ngo run examples/formater.go\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanzythebar%2Fassert-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzanzythebar%2Fassert-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanzythebar%2Fassert-lib/lists"}