{"id":22281008,"url":"https://github.com/shamaton/msgpack","last_synced_at":"2025-05-16T09:03:40.983Z","repository":{"id":48203746,"uuid":"143617348","full_name":"shamaton/msgpack","owner":"shamaton","description":"easier, faster, but extendable MessagePack Serializer for Golang. / msgpack.org[Go]","archived":false,"fork":false,"pushed_at":"2025-03-15T13:12:06.000Z","size":311,"stargazers_count":156,"open_issues_count":3,"forks_count":19,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T17:46:03.331Z","etag":null,"topics":["encoder-decoder","go","golang","messagepack-serializer","msgpack","serializer"],"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/shamaton.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,"zenodo":null}},"created_at":"2018-08-05T13:58:10.000Z","updated_at":"2025-03-29T04:02:09.000Z","dependencies_parsed_at":"2024-06-18T13:58:42.556Z","dependency_job_id":"555a83f2-677d-4d93-b1fa-3d001201a404","html_url":"https://github.com/shamaton/msgpack","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shamaton%2Fmsgpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shamaton%2Fmsgpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shamaton%2Fmsgpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shamaton%2Fmsgpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shamaton","download_url":"https://codeload.github.com/shamaton/msgpack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254501554,"owners_count":22081528,"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":["encoder-decoder","go","golang","messagepack-serializer","msgpack","serializer"],"created_at":"2024-12-03T16:12:12.914Z","updated_at":"2025-05-16T09:03:40.963Z","avatar_url":"https://github.com/shamaton.png","language":"Go","readme":"# MessagePack for Golang\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/shamaton/msgpack.svg)](https://pkg.go.dev/github.com/shamaton/msgpack)\n![test](https://github.com/shamaton/msgpack/workflows/test/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/shamaton/msgpack)](https://goreportcard.com/report/github.com/shamaton/msgpack)\n[![codecov](https://codecov.io/gh/shamaton/msgpack/branch/master/graph/badge.svg?token=9PD2JUK5V3)](https://codecov.io/gh/shamaton/msgpack)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fshamaton%2Fmsgpack.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fshamaton%2Fmsgpack?ref=badge_shield)\n\n## 📣 Notice\nIf your application serializes only primitive types, array, map and struct, code generation is also recommended.\nYou can get the fastest performance with [msgpackgen](https://github.com/shamaton/msgpackgen).\n\n## Features\n* Supported types : primitive / array / slice / struct / map / interface{} and time.Time\n* Renaming fields via `msgpack:\"field_name\"`\n* Omitting fields via `msgpack:\"-\"`\n* Supports extend encoder / decoder\n* Can also Encoding / Decoding struct as array\n\n## Installation\n\nCurrent version is **msgpack/v2**.\n```sh\ngo get -u github.com/shamaton/msgpack/v2\n```\n\n## Quick Start\n```go\npackage main\n\nimport (\n  \"github.com/shamaton/msgpack/v2\"\n  \"net/http\"\n)\n\ntype Struct struct {\n\tString string\n}\n\n// simple\nfunc main() {\n\tv := Struct{String: \"msgpack\"}\n\n\td, err := msgpack.Marshal(v)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tr := Struct{}\n\tif err =  msgpack.Unmarshal(d, \u0026r); err != nil {\n\t\tpanic(err)\n\t}\n}\n\n// streaming\nfunc handle(w http.ResponseWriter, r *http.Request) {\n\tvar body Struct\n\tif err := msgpack.UnmarshalRead(r, \u0026body); err != nil {\n\t\tpanic(err)\n    }\n\tif err := msgpack.MarshalWrite(w, body); err != nil {\n\t\tpanic(err)\n    }\n}\n```\n\n## Benchmark\nThis result made from [shamaton/msgpack_bench](https://github.com/shamaton/msgpack_bench)\n\n![msgpack_bench](https://user-images.githubusercontent.com/4637556/128299009-4823e79b-d70b-4d11-8f35-10a4758dfeca.png)\n\n## License\n\nThis library is under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshamaton%2Fmsgpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshamaton%2Fmsgpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshamaton%2Fmsgpack/lists"}