matterbridge/vendor/github.com/vmihailenco/msgpack/v5
Wim 2f33fe86f5
Update dependencies and build to go1.22 (#2113)
* Update dependencies and build to go1.22

* Fix api changes wrt to dependencies

* Update golangci config
2024-05-23 23:44:31 +02:00
..
msgpcode Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
.prettierrc Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
.travis.yml Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
CHANGELOG.md Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
commitlint.config.js Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
decode_map.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
decode_number.go Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
decode_query.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
decode_slice.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
decode_string.go Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
decode_typgen.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
decode_value.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
decode.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
encode_map.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
encode_number.go Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
encode_slice.go Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
encode_value.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
encode.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
ext.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
intern.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
LICENSE Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
Makefile Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
msgpack.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
package.json Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
README.md Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
safe.go Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
time.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
types.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00
unsafe.go Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686) 2022-01-18 20:24:14 +01:00
version.go Update dependencies and build to go1.22 (#2113) 2024-05-23 23:44:31 +02:00

MessagePack encoding for Golang

Build Status PkgGoDev Documentation Chat

msgpack is brought to you by uptrace/uptrace. Uptrace is an open source APM and blazingly fast distributed tracing tool powered by OpenTelemetry and ClickHouse. Give it a star as well!

Resources

Features

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
}

See also

Contributors

Thanks to all the people who already contributed!