{"id":24083280,"url":"https://github.com/mitranim/repr","last_synced_at":"2025-04-30T18:23:06.158Z","repository":{"id":57513583,"uuid":"154101802","full_name":"mitranim/repr","owner":"mitranim","description":"[MOVED] Pretty-print Go data structures as valid Go code","archived":false,"fork":false,"pushed_at":"2023-03-26T17:18:37.000Z","size":43,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-26T06:56:57.560Z","etag":null,"topics":["code-generation","go","golang","pretty-print"],"latest_commit_sha":null,"homepage":"https://github.com/mitranim/gg/tree/main/grepr","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitranim.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-10-22T07:18:39.000Z","updated_at":"2023-08-01T09:09:06.000Z","dependencies_parsed_at":"2024-06-20T00:09:53.493Z","dependency_job_id":"e0cf11b5-4596-49cd-b996-0b8d39d30f35","html_url":"https://github.com/mitranim/repr","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Frepr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Frepr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Frepr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Frepr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitranim","download_url":"https://codeload.github.com/mitranim/repr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251758669,"owners_count":21639081,"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":["code-generation","go","golang","pretty-print"],"created_at":"2025-01-09T23:56:16.253Z","updated_at":"2025-04-30T18:23:06.138Z","avatar_url":"https://github.com/mitranim.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MOVED\n\n**Better up-to-date version: https://github.com/mitranim/gg/tree/main/grepr.**\n\n**This repository is now outdated and frozen.**\n\n----\n\n## Overview\n\nPrints Go data structures as syntactically valid Go code. Useful for code generation. The name \"repr\" stands for \"representation\" and alludes to the Python function with the same name.\n\nSolves a problem unaddressed by https://github.com/davecgh/go-spew/spew; direct alternative to https://github.com/shurcooL/go-goon.\n\nSee godoc at https://godoc.org/github.com/mitranim/repr.\n\n## Example\n\n```go\nimport \"github.com/mitranim/repr\"\n\ntype Data struct {\n  Number int\n  String string\n  List   []int\n}\n\nrepr.Println(Data{\n  Number: 123,\n  String: \"hello world!\",\n  List:   []int{10, 20, 30},\n})\n\n/*\nData{\n  Number: 123,\n  String: \"hello world!\",\n  List: []int{10, 20, 30},\n}\n*/\n```\n\nSee the API documentation at https://godoc.org/github.com/mitranim/repr.\n\n## License\n\nhttps://unlicense.org\n\n## Misc\n\nI'm receptive to suggestions. If this package _almost_ satisfies you but needs changes, open an issue or chat me up. Contacts: https://mitranim.com/#contacts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitranim%2Frepr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitranim%2Frepr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitranim%2Frepr/lists"}