mirror of
1
Fork 0
gotosocial/vendor/github.com/vmihailenco/msgpack/v5
Tobi Smethurst 98263a7de6
Grand test fixup (#138)
* start fixing up tests

* fix up tests + automate with drone

* fiddle with linting

* messing about with drone.yml

* some more fiddling

* hmmm

* add cache

* add vendor directory

* verbose

* ci updates

* update some little things

* update sig
2021-08-12 21:03:24 +02:00
..
msgpcode Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
.golangci.yml Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
.prettierrc Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
.travis.yml Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
CHANGELOG.md Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
LICENSE Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
Makefile Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
README.md Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
decode.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
decode_map.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
decode_number.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
decode_query.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
decode_slice.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
decode_string.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
decode_value.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
encode.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
encode_map.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
encode_number.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
encode_slice.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
encode_value.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
ext.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
go.mod Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
go.sum Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
intern.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
msgpack.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
safe.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
time.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
types.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00
unsafe.go Grand test fixup (#138) 2021-08-12 21:03:24 +02:00

README.md

MessagePack encoding for Golang

Build Status PkgGoDev Documentation Chat

❤️ Uptrace.dev - All-in-one tool to optimize performance and monitor errors & logs

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