{"id":41402984,"url":"https://github.com/eberkund/rose","last_synced_at":"2026-01-23T13:16:23.371Z","repository":{"id":39658638,"uuid":"489612531","full_name":"eberkund/rose","owner":"eberkund","description":"Rose is a golden file utility library for your Go tests.","archived":false,"fork":false,"pushed_at":"2022-11-09T04:16:18.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T01:37:25.021Z","etag":null,"topics":["fixtures","go","golden","testing"],"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/eberkund.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-05-07T08:14:39.000Z","updated_at":"2023-01-03T05:10:55.000Z","dependencies_parsed_at":"2022-09-20T06:51:03.732Z","dependency_job_id":null,"html_url":"https://github.com/eberkund/rose","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eberkund/rose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eberkund%2Frose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eberkund%2Frose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eberkund%2Frose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eberkund%2Frose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eberkund","download_url":"https://codeload.github.com/eberkund/rose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eberkund%2Frose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28693215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fixtures","go","golden","testing"],"created_at":"2026-01-23T13:16:23.316Z","updated_at":"2026-01-23T13:16:23.364Z","avatar_url":"https://github.com/eberkund.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Tests](https://github.com/eberkund/rose/actions/workflows/tests.yml/badge.svg)](https://github.com/eberkund/rose/actions/workflows/tests.yml)\n[![codecov](https://codecov.io/gh/eberkund/rose/branch/master/graph/badge.svg?token=lCcKXaBzlD)](https://codecov.io/gh/eberkund/rose)\n[![Go Report Card](https://goreportcard.com/badge/github.com/eberkund/rose)](https://goreportcard.com/report/github.com/eberkund/rose)\n[![GoDoc](https://godoc.org/github.com/eberkund/rose?status.svg)](https://godoc.org/github.com/eberkund/rose)\n\n# Rose\n\nRose is a golden file utility library for your Go tests.\n\nIt handles the dirty work so your tests stay concise and readable.\n\n- Normalizes common file formats\n- Helps organize files with per-test path prefixes\n- Leaves you in control of supplying the update flag\n\n## Usage\n\n```go\npackage mypackage\n\nimport (\n\t\"flag\"\n\t\"testing\"\n\n\t\"github.com/eberkund/rose/gold\"\n)\n\n// Use `go test ./... -update` to write new files with supplied data\nvar update = flag.Bool(\"update\", false, \"update golden files\")\n\nfunc TestFiles(t *testing.T) {\n    g := gold.New(\n        t,\n\n        // Pass the update flag to Gold constructor\n        gold.WithFlag(*update),\n\n        // Store files in `testdata/\u003ctest name\u003e/\u003cfile name\u003e`\n        // Prefix defaults to `testdata`\n        gold.WithPrefix(\"testdata\", t.Name()),\n    )\n\n    // Provide the filename and input data\n    g.AssertEqualsJSON(\"somefile.golden.json\", `{\"foo\": 123}`)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feberkund%2Frose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feberkund%2Frose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feberkund%2Frose/lists"}