{"id":15371835,"url":"https://github.com/xescugc/marshaler","last_synced_at":"2026-05-16T06:36:12.571Z","repository":{"id":144233022,"uuid":"332199119","full_name":"xescugc/marshaler","owner":"xescugc","description":"Marshals different GO standar types","archived":false,"fork":false,"pushed_at":"2021-01-24T10:54:37.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T12:41:38.926Z","etag":null,"topics":["currency","go","golang","json","marhsaller","url"],"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/xescugc.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":"2021-01-23T11:57:18.000Z","updated_at":"2021-01-24T11:03:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"6b1ff841-a7a6-4ba4-b5f4-e35e74e9a5d2","html_url":"https://github.com/xescugc/marshaler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xescugc/marshaler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xescugc%2Fmarshaler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xescugc%2Fmarshaler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xescugc%2Fmarshaler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xescugc%2Fmarshaler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xescugc","download_url":"https://codeload.github.com/xescugc/marshaler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xescugc%2Fmarshaler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33092715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["currency","go","golang","json","marhsaller","url"],"created_at":"2024-10-01T13:48:55.566Z","updated_at":"2026-05-16T06:36:12.556Z","avatar_url":"https://github.com/xescugc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Marshaler\n\nAdds JSON (for now) Marshal and Unmarshal to different standard GO types\n\n## Installation\n\n```\n$\u003e go get github.com/xescugc/marshaler\n```\n\n## Usage\n\nIt supports 2 types:\n\n* [`url.URL`](https://golang.org/pkg/net/url/#URL): With `marshaler.URL`\n* [`currency.Unit`](https://pkg.go.dev/golang.org/x/text/currency#Unit): With `marshaler.CurrencyUnit`\n\n## Example\n\n```go\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/url\"\n\n\t\"github.com/xescugc/marshaler\"\n)\n\ntype User struct {\n  Name  string        `json:\"name\"`\n  URL   marshaler.URL `json:\"url\"`\n}\n\nfunc main() {\n  u, _ := url.Parse(\"http://example.com\")\n  usr := User{\n    Name: \"Pepito\",\n    URL:  marshaler.URL{\n      URL: u,\n    },\n  }\n\n  b, _ := json.Marshal(usr)\n\n  fmt.Println(string(b))\n  // { \"name\": \"Pepito\", \"url\": \"http://example.com\" }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxescugc%2Fmarshaler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxescugc%2Fmarshaler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxescugc%2Fmarshaler/lists"}