You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aad60c882e
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.1.0 to 6.3.0. - [Release notes](https://github.com/mattermost/mattermost-server/releases) - [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md) - [Commits](https://github.com/mattermost/mattermost-server/compare/v6.1.0...v6.3.0) --- updated-dependencies: - dependency-name: github.com/mattermost/mattermost-server/v6 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
3 years ago | |
---|---|---|
.. | ||
msgpcode | 3 years ago | |
.prettierrc | 3 years ago | |
.travis.yml | 3 years ago | |
CHANGELOG.md | 3 years ago | |
LICENSE | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
commitlint.config.js | 3 years ago | |
decode.go | 3 years ago | |
decode_map.go | 3 years ago | |
decode_number.go | 3 years ago | |
decode_query.go | 3 years ago | |
decode_slice.go | 3 years ago | |
decode_string.go | 3 years ago | |
decode_value.go | 3 years ago | |
encode.go | 3 years ago | |
encode_map.go | 3 years ago | |
encode_number.go | 3 years ago | |
encode_slice.go | 3 years ago | |
encode_value.go | 3 years ago | |
ext.go | 3 years ago | |
intern.go | 3 years ago | |
msgpack.go | 3 years ago | |
package.json | 3 years ago | |
safe.go | 3 years ago | |
time.go | 3 years ago | |
types.go | 3 years ago | |
unsafe.go | 3 years ago | |
version.go | 3 years ago |
README.md
MessagePack encoding for Golang
❤️ Uptrace.dev - All-in-one tool to optimize performance and monitor errors & logs
- Join Discord to ask questions.
- Documentation
- Reference
- Examples
Other projects you may like:
- Bun - fast and simple SQL client for PostgreSQL, MySQL, and SQLite.
- BunRouter - fast and flexible HTTP router for Go.
Features
- Primitives, arrays, maps, structs, time.Time and interface{}.
- Appengine *datastore.Key and datastore.Cursor.
- CustomEncoder/CustomDecoder interfaces for custom encoding.
- Extensions to encode type information.
- Renaming fields via
msgpack:"my_field_name"
and alias viamsgpack:"alias:another_name"
. - Omitting individual empty fields via
msgpack:",omitempty"
tag or all empty fields in a struct. - Map keys sorting.
- Encoding/decoding all structs as arrays or individual structs.
- Encoder.SetCustomStructTag with Decoder.SetCustomStructTag can turn msgpack into drop-in replacement for any tag.
- Simple but very fast and efficient queries.
Installation
msgpack supports 2 last Go versions and requires support for Go modules. So make sure to initialize a Go module:
go mod init github.com/my/repo
And then install msgpack/v5 (note v5 in the import; omitting it is a popular mistake):
go get github.com/vmihailenco/msgpack/v5
Quickstart
import "github.com/vmihailenco/msgpack/v5"
func ExampleMarshal() {
type Item struct {
Foo string
}
b, err := msgpack.Marshal(&Item{Foo: "bar"})
if err != nil {
panic(err)
}
var item Item
err = msgpack.Unmarshal(b, &item)
if err != nil {
panic(err)
}
fmt.Println(item.Foo)
// Output: bar
}