{"id":20532476,"url":"https://github.com/joshdk/contents","last_synced_at":"2026-06-06T10:31:59.476Z","repository":{"id":57612319,"uuid":"110899549","full_name":"joshdk/contents","owner":"joshdk","description":"🔍 Inspect private context.Context internals","archived":false,"fork":false,"pushed_at":"2017-11-17T03:09:21.000Z","size":79,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T02:49:08.029Z","etag":null,"topics":["context","golang","reflect"],"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/joshdk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-15T23:40:30.000Z","updated_at":"2019-03-28T20:09:48.000Z","dependencies_parsed_at":"2022-08-27T09:51:17.953Z","dependency_job_id":null,"html_url":"https://github.com/joshdk/contents","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joshdk/contents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcontents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcontents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcontents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcontents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshdk","download_url":"https://codeload.github.com/joshdk/contents/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshdk%2Fcontents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33979274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":["context","golang","reflect"],"created_at":"2024-11-16T00:15:07.174Z","updated_at":"2026-06-06T10:31:59.438Z","avatar_url":"https://github.com/joshdk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/github/license/joshdk/contents.svg)](https://opensource.org/licenses/MIT)\n[![GoDoc](https://godoc.org/github.com/joshdk/contents?status.svg)](https://godoc.org/github.com/joshdk/contents)\n[![Go Report Card](https://goreportcard.com/badge/github.com/joshdk/contents)](https://goreportcard.com/report/github.com/joshdk/contents)\n[![CircleCI](https://circleci.com/gh/joshdk/contents.svg?\u0026style=shield)](https://circleci.com/gh/joshdk/contents/tree/master)\n[![CodeCov](https://codecov.io/gh/joshdk/contents/branch/master/graph/badge.svg)](https://codecov.io/gh/joshdk/contents)\n\n# Contents\n\n🔍 Inspect private context.Context internals\n\n## Installing\n\nYou can fetch this library by running the following\n\n    go get -u github.com/joshdk/contents\n\n## Usage\n\n```go\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/joshdk/contents\"\n)\n\n// Build a context\nctx := context.Background()\nctx = context.WithValue(ctx, \"key-1\", \"val-1\")\nctx = context.WithValue(ctx, \"key-2\", \"val-2\")\nctx = context.WithValue(ctx, \"key-3\", \"val-3\")\n\n// Extract list of all keys\nkeys := contents.Keys(ctx)\n\nfor _, key := range keys {\n\tfmt.Printf(\"Context contains %q → %q\\n\", key, ctx.Value(key))\n\t// Context contains \"key-1\" → \"val-1\"\n\t// Context contains \"key-2\" → \"val-2\"\n\t// Context contains \"key-3\" → \"val-3\"\n}\n```\n\n## License\n\nThis library is distributed under the [MIT License](https://opensource.org/licenses/MIT), see LICENSE.txt for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fcontents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshdk%2Fcontents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshdk%2Fcontents/lists"}