{"id":17993918,"url":"https://github.com/jimeh/go-golden","last_synced_at":"2025-03-26T02:30:41.262Z","repository":{"id":43040987,"uuid":"406977717","full_name":"jimeh/go-golden","owner":"jimeh","description":"Yet another Go package for working with *.golden test files, with a focus on simplicity.","archived":false,"fork":false,"pushed_at":"2025-03-22T02:00:28.000Z","size":108,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T03:18:01.540Z","etag":null,"topics":["go","go-golden","go-test","go-test-helper","go-testing","golang","golden-file"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/jimeh/go-golden","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/jimeh.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":"2021-09-16T01:33:17.000Z","updated_at":"2025-03-22T02:00:31.000Z","dependencies_parsed_at":"2024-03-05T03:50:26.992Z","dependency_job_id":null,"html_url":"https://github.com/jimeh/go-golden","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimeh%2Fgo-golden","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimeh%2Fgo-golden/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimeh%2Fgo-golden/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimeh%2Fgo-golden/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimeh","download_url":"https://codeload.github.com/jimeh/go-golden/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245576522,"owners_count":20638123,"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":["go","go-golden","go-test","go-test-helper","go-testing","golang","golden-file"],"created_at":"2024-10-29T20:13:28.798Z","updated_at":"2025-03-26T02:30:41.255Z","avatar_url":"https://github.com/jimeh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  go-golden\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e\n    Yet another Go package for working with \u003ccode\u003e*.golden\u003c/code\u003e test files,\n    with a focus on simplicity.\n  \u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pkg.go.dev/github.com/jimeh/go-golden\"\u003e\u003cimg src=\"https://img.shields.io/badge/%E2%80%8B-reference-387b97.svg?logo=go\u0026logoColor=white\" alt=\"Go Reference\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jimeh/go-golden/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/jimeh/go-golden/ci.yml?logo=github\" alt=\"Actions Status\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://codeclimate.com/github/jimeh/go-golden\"\u003e\u003cimg src=\"https://img.shields.io/codeclimate/coverage/jimeh/go-golden.svg?logo=code%20climate\" alt=\"Coverage\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jimeh/go-golden/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues-raw/jimeh/go-golden.svg?style=flat\u0026logo=github\u0026logoColor=white\" alt=\"GitHub issues\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jimeh/go-golden/pulls\"\u003e\u003cimg src=\"https://img.shields.io/github/issues-pr-raw/jimeh/go-golden.svg?style=flat\u0026logo=github\u0026logoColor=white\" alt=\"GitHub pull requests\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jimeh/go-golden/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/jimeh/go-golden.svg?style=flat\" alt=\"License Status\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Import\n\n```go\nimport \"github.com/jimeh/go-golden\"\n```\n\n## Usage\n\n```go\nfunc TestExampleMyStruct(t *testing.T) {\n    got, err := json.Marshal(\u0026MyStruct{Foo: \"Bar\"})\n    require.NoError(t, err)\n\n    want := golden.Do(t, got)\n\n    assert.Equal(t, want, got)\n}\n```\n\nThe above example will read/write to:\n\n- `testdata/TestExampleMyStruct.golden`\n\nThe call to `golden.Do()` is equivalent to:\n\n```go\nif golden.Update() {\n    golden.Set(t, got)\n}\nwant := golden.Get(t)\n```\n\nTo update the golden file (have `golden.Update()` return `true`), simply set the\n`GOLDEN_UPDATE` environment variable to one of `1`, `y`, `t`, `yes`, `on`, or\n`true` when running tests.\n\n## Documentation\n\nPlease see the\n[Go Reference](https://pkg.go.dev/github.com/jimeh/go-golden#section-documentation)\nfor documentation and examples.\n\n## License\n\n[MIT](https://github.com/jimeh/go-golden/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimeh%2Fgo-golden","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimeh%2Fgo-golden","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimeh%2Fgo-golden/lists"}