{"id":13564191,"url":"https://github.com/moul/mdcodec","last_synced_at":"2025-04-28T13:26:29.098Z","repository":{"id":188974744,"uuid":"679708519","full_name":"moul/mdcodec","owner":"moul","description":"convert Go structures to and from readable Markdown (codec).","archived":false,"fork":false,"pushed_at":"2023-08-18T01:57:37.000Z","size":13,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-26T11:04:38.643Z","etag":null,"topics":["codec","markdown"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moul.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}},"created_at":"2023-08-17T12:48:40.000Z","updated_at":"2024-10-31T10:12:44.000Z","dependencies_parsed_at":"2024-01-14T03:48:13.138Z","dependency_job_id":"f5bf40dc-4b75-4ffd-af27-408fa39ec728","html_url":"https://github.com/moul/mdcodec","commit_stats":null,"previous_names":["moul/mdencode","moul/mdcodec"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moul%2Fmdcodec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moul%2Fmdcodec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moul%2Fmdcodec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moul%2Fmdcodec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moul","download_url":"https://codeload.github.com/moul/mdcodec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232101130,"owners_count":18472709,"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":["codec","markdown"],"created_at":"2024-08-01T13:01:27.788Z","updated_at":"2025-01-01T16:31:19.237Z","avatar_url":"https://github.com/moul.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Mdcodec\n\nTransform Go structures into readable Markdown, tailored for both human and machine consumption.\n\n## Features\n\n- Hierarchical struct representation using `#` for primary and nested lists for secondary structures.\n- Uses reflection.\n\n## Roadmap\n\n- Introduce concise single-line encodings.\n- Introduce markdown table support (See [moul/mdtable](https://github.com/moul/mdtable)).\n- Integrate native support within Amino.\n- Examples: develop markdown-centric APIs in Gnoland contracts. And Go clients.\n\n## Examples\n\n### `mdcodec.`Marshal``\n\n```go\ntype Person struct {\n    Name    string `md:\"title\"`\n    Age     int\n    Address struct {\n        City  string\n        State string\n    }\n}\n\np := Person{}\np.Name = \"John Doe\"\np.Age = 30\np.Address.City = \"Sprintfield\"\np.Address.State = \"IL\"\n\nmd := mdcodec.Marshal(p)\nfmt.Println(md)\n\n// Output:\n// # John Doe (Person)\n//\n// - **Age**: 30\n// - **Address**:\n//   - **City**: Springfield\n//   - **State**: IL\n```\n\n### `mdcodec.Unmarshal`\n\n```go\nvar p Person\nerr := mdcodec.Unmarshal(md, \u0026p)\n```\n\n## 🔧 Installation\n\n    go get moul.io/mdcodec\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoul%2Fmdcodec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoul%2Fmdcodec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoul%2Fmdcodec/lists"}