{"id":20696044,"url":"https://github.com/weiwenchen2022/assert","last_synced_at":"2025-10-10T21:05:42.194Z","repository":{"id":183261748,"uuid":"669846171","full_name":"weiwenchen2022/assert","owner":"weiwenchen2022","description":"Assert for Go 1.18+ test assertions","archived":false,"fork":false,"pushed_at":"2023-07-23T16:22:45.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T01:15:26.793Z","etag":null,"topics":["assertion","go","library","testing"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/weiwenchen2022/assert","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weiwenchen2022.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-07-23T16:08:03.000Z","updated_at":"2023-07-23T16:21:40.000Z","dependencies_parsed_at":"2023-07-23T17:38:20.504Z","dependency_job_id":null,"html_url":"https://github.com/weiwenchen2022/assert","commit_stats":null,"previous_names":["weiwenchen2022/assert"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/weiwenchen2022/assert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwenchen2022%2Fassert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwenchen2022%2Fassert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwenchen2022%2Fassert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwenchen2022%2Fassert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weiwenchen2022","download_url":"https://codeload.github.com/weiwenchen2022/assert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weiwenchen2022%2Fassert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005332,"owners_count":26083883,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["assertion","go","library","testing"],"created_at":"2024-11-17T00:12:19.780Z","updated_at":"2025-10-10T21:05:42.178Z","avatar_url":"https://github.com/weiwenchen2022.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Assert for Go 1.18+ test assertions\n\n## Install\n\n```sh\ngo get github.com/weiwenchen2022/assert\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"testing\"\n    \"github.com/weiwenchen2022/assert\"\n)\n\nfunc greet(name string) (string, int) {\n    greeting := fmt.Sprintf(\"Hello %s\", name)\n\n    // Return the greeting and its length (in bytes).\n    return greeting, len(greeting)\n}\n\nfunc TestGreet(t *testing.T) {\n    greeting, greetingLength := greet(\"Alice\")\n\n    assert.Equal(t, \"Hello Alice\", greeting, \"greeting:\")\n    assert.Equal(t, 11, greetingLength, \"greetingLength:\")\n}\n```\n\n## Reference\n\nGoDoc: [https://godoc.org/github.com/weiwenchen2022/assert](https://godoc.org/github.com/weiwenchen2022/assert)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweiwenchen2022%2Fassert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweiwenchen2022%2Fassert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweiwenchen2022%2Fassert/lists"}