{"id":15683690,"url":"https://github.com/zemanlx/gotests-template","last_synced_at":"2026-03-18T17:39:12.217Z","repository":{"id":42368702,"uuid":"452058949","full_name":"zemanlx/gotests-template","owner":"zemanlx","description":"Template for gotests compatible with all linters of golangci-lint.","archived":false,"fork":false,"pushed_at":"2022-04-08T14:27:06.000Z","size":59,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T12:29:46.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zemanlx.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}},"created_at":"2022-01-25T22:10:38.000Z","updated_at":"2022-01-26T08:22:02.000Z","dependencies_parsed_at":"2022-09-21T18:02:08.797Z","dependency_job_id":null,"html_url":"https://github.com/zemanlx/gotests-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemanlx%2Fgotests-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemanlx%2Fgotests-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemanlx%2Fgotests-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemanlx%2Fgotests-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemanlx","download_url":"https://codeload.github.com/zemanlx/gotests-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246307932,"owners_count":20756478,"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":[],"created_at":"2024-10-03T17:08:12.661Z","updated_at":"2026-01-26T12:38:35.282Z","avatar_url":"https://github.com/zemanlx.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# gotests-template\n\nOpinionated template for generation of Go tests using\n[gotests](https://github.com/cweill/gotests) utility which is natively\nintegrated to [VS Code Go\nextension](https://marketplace.visualstudio.com/items?itemName=golang.go) and\nGoland.\n\n## Features\n\n- Uses [go-cmp](github.com/google/go-cmp/cmp) instead of `reflect.DeepEqual`\n  for non-basic types\n- `wantErr`is type of `error` which is enabling use of `errors.Is` in assert\n  part of tests\n- Compatible with all `golangci-lint` linters (whitespace, variable names, etc.)\n\n## Usage\n\nClone this repository and refer it in VS Code settings:\n\n```json\n  \"go.generateTestsFlags\": [\n    \"-template_dir=/path/to/this/repo/gotests-template/cmp-linted\"\n  ]\n```\n\nFor Goland you may need to use *external tool* settings to pass `-template_dir`\noption as kindly described in [gotests issue\n161](https://github.com/cweill/gotests/issues/161#issuecomment-848329955).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemanlx%2Fgotests-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemanlx%2Fgotests-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemanlx%2Fgotests-template/lists"}