{"id":19179405,"url":"https://github.com/rssblue/types","last_synced_at":"2026-02-07T11:04:47.514Z","repository":{"id":48324928,"uuid":"516836036","full_name":"rssblue/types","owner":"rssblue","description":"Go data types for Podcasting 2.0: easily marshal to XML!","archived":false,"fork":false,"pushed_at":"2025-01-14T18:03:44.000Z","size":91,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T05:02:36.189Z","etag":null,"topics":["go","podcasting20","rss"],"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/rssblue.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-22T17:33:08.000Z","updated_at":"2025-01-14T18:03:48.000Z","dependencies_parsed_at":"2023-02-01T02:45:57.868Z","dependency_job_id":"c2060e6f-0941-46b8-94a2-e70d036876fc","html_url":"https://github.com/rssblue/types","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rssblue/types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssblue%2Ftypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssblue%2Ftypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssblue%2Ftypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssblue%2Ftypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rssblue","download_url":"https://codeload.github.com/rssblue/types/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssblue%2Ftypes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29193089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"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":["go","podcasting20","rss"],"created_at":"2024-11-09T10:43:02.023Z","updated_at":"2026-02-07T11:04:47.495Z","avatar_url":"https://github.com/rssblue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Types\n\nThis package provides a number of Go struct types with field tags for XML marshalling.\nThere are standard RSS 2.0, iTunes and many of the [Podcasting 2.0](https://github.com/Podcastindex-org/podcast-namespace) tags available.\n\n## Install\n\nThere is no stable release yet, and backwards-incompatible changes may still be introduced.\nBut if you want to try it, you can simply do\n```\ngo get github.com/rssblue/types\n```\n\n## Example\n\n### Code\n\n```go\npackage main\n\nimport (\n  \"encoding/xml\"\n  \"fmt\"\n  \"time\"\n\n  \"github.com/rssblue/types\"\n)\n\nfunc main() {\n  rss := types.RSS{\n    NamespaceITunes:  true,\n    NamespacePodcast: true,\n    Channel: types.Channel{\n      Title: pointer(\"Bookworm Podcast\"),\n      Description: \u0026types.Description{\n        Description: \"Podcast about \u003cem\u003ebooks\u003c/em\u003e.\",\n        IsCDATA:     true,\n      },\n      Language:     pointer(\"en\"),\n      ITunesAuthor: pointer(\"John\"),\n      ITunesOwner: \u0026types.ITunesOwner{\n        Name:  \"John\",\n        Email: \"john@example.com\",\n      },\n      ITunesImage: \u0026types.ITunesImage{\n        URL: \"https://example.com/cover-art.png\",\n      },\n      ITunesCategories: []types.ITunesCategory{\n        {\n          Category: \"Arts\",\n        },\n      },\n      ITunesType:  pointer(\"episodic\"),\n      PodcastGUID: pointer(types.PodcastGUID(\"cda647ce-56b8-5d7c-9448-ba1993ab46b7\")),\n      Items: []types.Item{\n        {\n          Title: pointer(\"Book Review: Moby-Dick\"),\n          Enclosure: \u0026types.Enclosure{\n            URL:      \"https://example.com/moby-dick.mp3\",\n            Length:   4096,\n            Mimetype: \"audio/mpeg\",\n          },\n          GUID:              \u0026types.GUID{GUID: \"https://example.com/moby-dick\"},\n          ITunesEpisodeType: pointer(\"full\"),\n          PubDate:           pointer(types.Date(time.Date(2022, time.July, 23, 10, 30, 0, 0, time.UTC))),\n          PodcastLocation: \u0026types.PodcastLocation{\n            OSM: \u0026types.PodcastOSM{\n              Type:      'R',\n              FeatureID: 2396248,\n            },\n          },\n        },\n      },\n    },\n  }\n\n  output, err := xml.MarshalIndent(\u0026rss, \"\", \"  \")\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Printf(\"%s%s\\n\", xml.Header, output)\n\n}\n\nfunc pointer[T any](v T) *T {\n  return \u0026v\n}\n```\n\n### Output\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003crss version=\"2.0\" xmlns:itunes=\"http://www.itunes.com/dtds/podcast-1.0.dtd\" xmlns:podcast=\"https://podcastindex.org/namespace/1.0\"\u003e\n  \u003cchannel\u003e\n    \u003cdescription\u003e\u003c![CDATA[Podcast about \u003cem\u003ebooks\u003c/em\u003e.]]\u003e\u003c/description\u003e\n    \u003clanguage\u003een\u003c/language\u003e\n    \u003ctitle\u003eBookworm Podcast\u003c/title\u003e\n    \u003citunes:author\u003eJohn\u003c/itunes:author\u003e\n    \u003citunes:category text=\"Arts\"\u003e\u003c/itunes:category\u003e\n    \u003citunes:image href=\"https://example.com/cover-art.png\"\u003e\u003c/itunes:image\u003e\n    \u003citunes:owner\u003e\n      \u003citunes:name\u003eJohn\u003c/itunes:name\u003e\n      \u003citunes:email\u003ejohn@example.com\u003c/itunes:email\u003e\n    \u003c/itunes:owner\u003e\n    \u003citunes:type\u003eepisodic\u003c/itunes:type\u003e\n    \u003cpodcast:guid\u003ecda647ce-56b8-5d7c-9448-ba1993ab46b7\u003c/podcast:guid\u003e\n    \u003citem\u003e\n      \u003cenclosure url=\"https://example.com/moby-dick.mp3\" length=\"4096\" type=\"audio/mpeg\"\u003e\u003c/enclosure\u003e\n      \u003cguid\u003ehttps://example.com/moby-dick\u003c/guid\u003e\n      \u003cpubDate\u003eSat, 23 Jul 2022 10:30:00 GMT\u003c/pubDate\u003e\n      \u003ctitle\u003eBook Review: Moby-Dick\u003c/title\u003e\n      \u003citunes:episodeType\u003efull\u003c/itunes:episodeType\u003e\n      \u003cpodcast:location osm=\"R2396248\"\u003e\u003c/podcast:location\u003e\n    \u003c/item\u003e\n  \u003c/channel\u003e\n\u003c/rss\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frssblue%2Ftypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frssblue%2Ftypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frssblue%2Ftypes/lists"}